Dockerfile 249 B

12345678910111213
  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 --force
  8. RUN cd dist/
  9. RUN rm -rf index.html
  10. ENTRYPOINT ["node","server.js"]