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