提交 2b1dc5d8 作者: 余乾开

Update Dockerfile

上级 cac58ac3
...@@ -13,7 +13,8 @@ FROM nginx:alpine as production ...@@ -13,7 +13,8 @@ FROM nginx:alpine as production
ENV NODE_ENV production ENV NODE_ENV production
# Set working directory to nginx asset directory # Set working directory to nginx asset directory
COPY --from=builder /app/dist /usr/share/nginx/html COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf #COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80 EXPOSE 80
# Containers run nginx with global directives and daemon off # Containers run nginx with global directives and daemon off
ENTRYPOINT ["nginx", "-g", "daemon off;"] ENTRYPOINT ["nginx", "-g", "daemon off;"]
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论