Spaces:
Build error
Build error
secrets are not required
Browse files- 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
|
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 \
|
|
|
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 \
|