chd 1 year ago
parent
commit
50e5b64450
1 changed files with 5 additions and 1 deletions
  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"]