Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -14,8 +14,8 @@ ARG DB_POSTGRESDB_USER=$DB_POSTGRESDB_USER
|
|
14 |
ARG DB_POSTGRESDB_PASSWORD=$DB_POSTGRESDB_PASSWORD
|
15 |
|
16 |
# 显示构建参数(调试用)
|
17 |
-
RUN --mount=type=secret,id=
|
18 |
-
--mount=type=secret,id=
|
19 |
echo "Build args: CACHEBUST=${CACHEBUST}, DB_HOST=${DB_POSTGRESDB_HOST}, DB_PORT=${DB_POSTGRESDB_PORT}"
|
20 |
|
21 |
# 设置 NC_DB 环境变量
|
|
|
14 |
ARG DB_POSTGRESDB_PASSWORD=$DB_POSTGRESDB_PASSWORD
|
15 |
|
16 |
# 显示构建参数(调试用)
|
17 |
+
RUN --mount=type=secret,id=DB_POSTGRESDB_USER,mode=0444,required=true \
|
18 |
+
--mount=type=secret,id=DB_POSTGRESDB_PASSWORD,mode=0444,required=true \
|
19 |
echo "Build args: CACHEBUST=${CACHEBUST}, DB_HOST=${DB_POSTGRESDB_HOST}, DB_PORT=${DB_POSTGRESDB_PORT}"
|
20 |
|
21 |
# 设置 NC_DB 环境变量
|