Spaces:
Build error
Build error
fix secrets
Browse files- Dockerfile +10 -9
Dockerfile
CHANGED
@@ -18,16 +18,17 @@ RUN --mount=type=cache,target=/app/.npm \
|
|
18 |
|
19 |
COPY .template.env.local .template.env.local
|
20 |
|
21 |
-
RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
RUN --mount=type=secret,id=PREPROMPT,mode=0444,required=true PREPROMPT=$(cat /run/secrets/PREPROMPT) \
|
25 |
-
&& export PREPROMPT
|
26 |
-
|
27 |
-
RUN --mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true MODEL_TEMPERATURE=$(cat /run/secrets/MODEL_TEMPERATURE) \
|
28 |
-
&& export MODEL_TEMPERATURE
|
29 |
-
|
30 |
-
RUN envsubst < ".template.env.local" > ".env.local"
|
31 |
|
32 |
RUN npm run build
|
33 |
|
|
|
18 |
|
19 |
COPY .template.env.local .template.env.local
|
20 |
|
21 |
+
RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true \
|
22 |
+
--mount=type=secret,id=PREPROMPT,mode=0444,required=true \
|
23 |
+
--mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true \
|
24 |
+
MODEL_NAME=$(cat /run/secrets/MODEL_NAME) \
|
25 |
+
&& export MODEL_NAME \
|
26 |
+
&& PREPROMPT=$(cat /run/secrets/PREPROMPT) \
|
27 |
+
&& export PREPROMPT \
|
28 |
+
&& MODEL_TEMPERATURE=$(cat /run/secrets/MODEL_TEMPERATURE) \
|
29 |
+
&& export MODEL_TEMPERATURE \
|
30 |
+
&& envsubst < ".template.env.local" > ".env.local"
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
RUN npm run build
|
34 |
|