Dockerfile 227 B

1234567891011
  1. FROM node:alpine
  2. ENV TZ="Asia/Shanghai"
  3. ENV NGINX_PORT=8088
  4. EXPOSE ${NGINX_PORT}
  5. COPY dist/ /usr/share/nginx/html/
  6. COPY nginx.conf /etc/nginx/nginx.conf
  7. RUN npm install
  8. RUN rm -rf index.html
  9. ENTERYPOINT ["node","server.js"]