martynka commited on
Commit
f6fb9fd
·
verified ·
1 Parent(s): 58b4373

Update Dockerfile

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