feat: 添加 sw2 服务器 Docker 部署与回退流程

This commit is contained in:
Yvan
2026-11-04 16:01:30 +08:00
parent 34535c90c3
commit 503f3b1a7d
8 changed files with 320 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM docker.m.daocloud.io/nginx:1.28-alpine@sha256:a8b39bd9cf0f83869a2162827a0caf6137ddf759d50a171451b335cecc87d236
ARG VERSION
LABEL org.opencontainers.image.revision=$VERSION
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY dist/ /usr/share/nginx/html/
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD wget -q -O /dev/null http://127.0.0.1/healthz || exit 1