chd 1 gadu atpakaļ
vecāks
revīzija
50e5b64450
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  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"]