Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,2 +1,5 @@
|
|
1 |
FROM xyhelper/cockroachai:latest
|
2 |
-
RUN mkdir -p /app/config && chmod 777 /app/config
|
|
|
|
|
|
|
|
1 |
FROM xyhelper/cockroachai:latest
|
2 |
+
RUN mkdir -p /app/config && chmod 777 /app/config
|
3 |
+
# 获取config.yaml
|
4 |
+
RUN --mount=type=secret,id=CONFIG_YAML,mode=0444,required=true \
|
5 |
+
cat /run/secrets/CONFIG_YAML > /app/config/config.yaml && chmod 777 /app/config/config.yaml
|