提交 dde308e8 作者: 龚洪江

Merge remote-tracking branch 'origin/develop' into develop

...@@ -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
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: admin-deployment name: admin-deployment
namespace: default namespace: default
spec: spec:
# minReadySeconds: 120 minReadySeconds: 5
revisionHistoryLimit: 2 revisionHistoryLimit: 2
replicas: 1 replicas: 1
selector: selector:
...@@ -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
...@@ -14,4 +14,4 @@ patches: ...@@ -14,4 +14,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag: 8cd9b0f5e4c0883b49c9e7e975f02a5c302878b0 newTag: b288cd44e454bacbf5e49016c84b791ba1d7f086
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论