nsarrazin HF staff commited on
Commit
19a9ea2
1 Parent(s): 88118bf

secrets are not required

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -19,11 +19,11 @@ COPY defaults /app/chat-ui/defaults
19
 
20
  COPY .template.env.local .template.env.local
21
 
22
- RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true \
23
- --mount=type=secret,id=MODEL_PARAMS,mode=0444,required=true \
24
- --mount=type=secret,id=MONGODB_URL,mode=0444,required=true \
25
- --mount=type=secret,id=APP_COLOR,mode=0444,required=true \
26
- --mount=type=secret,id=APP_NAME,mode=0444,required=true \
27
  MODEL_NAME=$(cat /run/secrets/MODEL_NAME || /app/chat-ui/defaults/MODEL_NAME) && export MODEL_NAME \
28
  && MODEL_PARAMS=$(cat /run/secrets/MODEL_PARAMS || /app/chat-ui/defaults/MODEL_PARAMS) && export MODEL_PARAMS \
29
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL || /app/chat-ui/defaults/MONGODB_URL) && export MONGODB_URL \
 
19
 
20
  COPY .template.env.local .template.env.local
21
 
22
+ RUN --mount=type=secret,id=MODEL_NAME,mode=0444 \
23
+ --mount=type=secret,id=MODEL_PARAMS,mode=0444 \
24
+ --mount=type=secret,id=MONGODB_URL,mode=0444 \
25
+ --mount=type=secret,id=APP_COLOR,mode=0444 \
26
+ --mount=type=secret,id=APP_NAME,mode=0444 \
27
  MODEL_NAME=$(cat /run/secrets/MODEL_NAME || /app/chat-ui/defaults/MODEL_NAME) && export MODEL_NAME \
28
  && MODEL_PARAMS=$(cat /run/secrets/MODEL_PARAMS || /app/chat-ui/defaults/MODEL_PARAMS) && export MODEL_PARAMS \
29
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL || /app/chat-ui/defaults/MONGODB_URL) && export MONGODB_URL \