nsarrazin HF staff commited on
Commit
169eff3
1 Parent(s): 2679ca9

fix secrets

Browse files
Files changed (1) hide show
  1. 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 MODEL_NAME=$(cat /run/secrets/MODEL_NAME) \
22
- && export MODEL_NAME
 
 
 
 
 
 
 
 
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