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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
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 > /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} \
@@ -31,10 +31,10 @@ ENV HOST=0.0.0.0 \
31
  MEILI_HOST=https://martynka-meilisearch.hf.space \
32
  CONFIG_PATH=/app/librechat.yaml \
33
  CUSTOM_FOOTER=EasierIT \
34
- MONGO_URI="$MONGO_URI" \
35
- SUDO_SECRET="$SUDO_SECRET" \
36
- ADMIN_SECRET="$SUDO_SECRET" \
37
- FLASK_SECRET="$FLASK_SECRET" \
38
  NODE_ENV=production
39
 
40
  # HTML Admin Panel
 
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} \
 
31
  MEILI_HOST=https://martynka-meilisearch.hf.space \
32
  CONFIG_PATH=/app/librechat.yaml \
33
  CUSTOM_FOOTER=EasierIT \
34
+ # MONGO_URI="$MONGO_URI" \
35
+ # SUDO_SECRET="$SUDO_SECRET" \
36
+ # ADMIN_SECRET="$SUDO_SECRET" \
37
+ # FLASK_SECRET="$FLASK_SECRET" \
38
  NODE_ENV=production
39
 
40
  # HTML Admin Panel