提交 ee9a3d5c 作者: 余乾开

feat(config):revert last commit

上级 b9c6886c
...@@ -11,6 +11,7 @@ RUN npm run build ...@@ -11,6 +11,7 @@ RUN npm run build
# nginx # nginx
FROM nginx:alpine as production FROM nginx:alpine as production
VOLUME ["/var/log/nginx/"] VOLUME ["/var/log/nginx/"]
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
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
......
...@@ -21,9 +21,6 @@ spec: ...@@ -21,9 +21,6 @@ spec:
volumeMounts: volumeMounts:
- name: log-of-nginx - name: log-of-nginx
mountPath: /var/log/nginx mountPath: /var/log/nginx
- name: localtime
mountPath: /etc/localtime
readOnly: true
resources: resources:
limits: limits:
memory: 512Mi memory: 512Mi
...@@ -34,6 +31,3 @@ spec: ...@@ -34,6 +31,3 @@ spec:
- name: log-of-nginx - name: log-of-nginx
hostPath: hostPath:
path: /var/log/nginx path: /var/log/nginx
- name: localtime
hostPath:
path: /etc/localtime
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论