martynka commited on
Commit
40aa301
·
verified ·
1 Parent(s): bc7a728

Update Dockerfile

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