martynka commited on
Commit
90935a4
·
verified ·
1 Parent(s): 416103e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -9,6 +9,13 @@ RUN apk update && apk add --no-cache \
9
  py3-dotenv \
10
  && pip install flask pymongo[srv] --break-system-packages
11
  COPY config.yaml /app/librechat.yaml
 
 
 
 
 
 
 
12
 
13
  # Create admin structure
14
  RUN mkdir -p /app/sudo/{templates,static} \
 
9
  py3-dotenv \
10
  && pip install flask pymongo[srv] --break-system-packages
11
  COPY config.yaml /app/librechat.yaml
12
+ #secrets
13
+ RUN --mount=type=secret,id=SUDO_SECRET \
14
+ export SUDO_SECRET=$(cat /run/secrets/SUDO_SECRET)
15
+ RUN --mount=type=secret,id=MONGO_URI \
16
+ export MONGO_URI=$(cat /run/secrets/MONGO_URI)
17
+ RUN --mount=type=secret,id=FLASK_SECRET \
18
+ export FLASK_SECRET=$(cat /run/secrets/FLASK_SECRET)
19
 
20
  # Create admin structure
21
  RUN mkdir -p /app/sudo/{templates,static} \