update.
This commit is contained in:
parent
0e30f1b188
commit
6404f91607
@ -1,5 +1,5 @@
|
|||||||
# 构建阶段
|
# 构建阶段
|
||||||
FROM node:16 as builder
|
FROM node:16 AS builder
|
||||||
|
|
||||||
# 设置构建参数
|
# 设置构建参数
|
||||||
ARG BUILD_ENV=testing
|
ARG BUILD_ENV=testing
|
||||||
@ -29,10 +29,6 @@ FROM nginx:stable-alpine
|
|||||||
# 安装基础工具
|
# 安装基础工具
|
||||||
RUN apk add --no-cache bash curl
|
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 配置
|
# 复制 nginx 配置
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user