rr1 commited on
Commit
6250a68
·
1 Parent(s): 13a4bac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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