feat: front base dockerfile

This commit is contained in:
tao.chen
2026-08-04 18:48:15 +08:00
parent 00f50d4603
commit bbf166f3c8
2 changed files with 26 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# =============================================================================
# nginx-base
# nginx 运行时阶段的公共基础镜像:只包含时区配置(apk 换源如有需要可在此追加)
# 构建: docker build -f nginx-base.Dockerfile -t your-registry/nginx-base:alpine .
# 推送: docker push your-registry/nginx-base:alpine
# =============================================================================
FROM nginx:alpine
ENV TZ=Asia/Shanghai
RUN apk add --no-cache tzdata \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone