Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -11,11 +11,11 @@ RUN apk update && apk add --no-cache \
|
|
| 11 |
RUN pip install flask pymongo[srv] --break-system-packages
|
| 12 |
COPY config.yaml /app/librechat.yaml
|
| 13 |
#secrets
|
| 14 |
-
RUN --mount=type=secret,
|
| 15 |
RUN export SUDO_SECRET=$(cat /app/sudo.sec)
|
| 16 |
-
RUN --mount=type=secret,
|
| 17 |
RUN export MONGO_URI=$(cat /app/mongo.sec)
|
| 18 |
-
RUN --mount=type=secret,
|
| 19 |
RUN export FLASK_SECRET=$(cat /app/flask.sec)
|
| 20 |
|
| 21 |
# Create admin structure
|
|
|
|
| 11 |
RUN pip install flask pymongo[srv] --break-system-packages
|
| 12 |
COPY config.yaml /app/librechat.yaml
|
| 13 |
#secrets
|
| 14 |
+
RUN --mount=type=secret,id=SUDO_SECRET,required=true cat /run/secrets/SUDO_SECRET > /app/sudo.sec
|
| 15 |
RUN export SUDO_SECRET=$(cat /app/sudo.sec)
|
| 16 |
+
RUN --mount=type=secret,id=MONGO_URI,required=true cat /run/secrets/MONGO_URI > /app/mongo.sec
|
| 17 |
RUN export MONGO_URI=$(cat /app/mongo.sec)
|
| 18 |
+
RUN --mount=type=secret,id=FLASK_SECRET,required=true cat /run/secrets/FLASK_SECRET > /app/flask.sec
|
| 19 |
RUN export FLASK_SECRET=$(cat /app/flask.sec)
|
| 20 |
|
| 21 |
# Create admin structure
|