chd 1 rok pred
rodič
commit
50e5b64450
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      Dockerfile

+ 5 - 1
Dockerfile

@@ -1,7 +1,11 @@
-FROM nginx:1.16
+FROM node:alpine
 
 ENV TZ="Asia/Shanghai"
 ENV NGINX_PORT=8088
 EXPOSE ${NGINX_PORT}
 COPY dist/  /usr/share/nginx/html/
 COPY nginx.conf /etc/nginx/nginx.conf
+RUN npm install
+RUN rm -rf index.html
+
+ENTERYPOINT ["node","server.js"]