This commit is contained in:
aaron 2025-01-20 13:04:07 +08:00
parent 0e30f1b188
commit 6404f91607

View File

@ -1,5 +1,5 @@
# 构建阶段
FROM node:16 as builder
FROM node:16 AS builder
# 设置构建参数
ARG BUILD_ENV=testing
@ -29,10 +29,6 @@ FROM nginx:stable-alpine
# 安装基础工具
RUN apk add --no-cache bash curl
# 创建非root用户
RUN addgroup -g 101 -S nginx \
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx nginx
# 复制 nginx 配置
COPY nginx.conf /etc/nginx/conf.d/default.conf