Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM xyhelper/chat2api
|
| 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
|