nsarrazin HF staff commited on
Commit
9761336
1 Parent(s): 48f4f40

replacec echo by exports

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -22,12 +22,11 @@ RUN --mount=type=secret,id=MODEL_NAME,mode=0444 \
22
  --mount=type=secret,id=MONGODB_URL,mode=0444 \
23
  --mount=type=secret,id=APP_COLOR,mode=0444 \
24
  --mount=type=secret,id=APP_NAME,mode=0444 \
25
- MODEL_NAME=$(cat /run/secrets/MODEL_NAME 2> /dev/null | grep '^' || cat /defaults/MODEL_NAME) && echo "$MODEL_NAME" \
26
- && MODEL_PARAMS=$(cat /run/secrets/MODEL_PARAMS 2> /dev/null | grep '^' ||cat /defaults/MODEL_PARAMS) && echo "$MODEL_PARAMS" \
27
- && MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null | grep '^' || cat /defaults/MONGODB_URL) && echo "$MONGODB_URL" \
28
- && APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null | grep '^' || cat /defaults/APP_COLOR) && echo "$APP_COLOR" \
29
- && APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null | grep '^' || cat /defaults/APP_NAME) && echo "$APP_NAME" \
30
- && echo "vars hello" \
31
  && envsubst < ".template.env.local" > ".env.local"
32
 
33
 
 
22
  --mount=type=secret,id=MONGODB_URL,mode=0444 \
23
  --mount=type=secret,id=APP_COLOR,mode=0444 \
24
  --mount=type=secret,id=APP_NAME,mode=0444 \
25
+ MODEL_NAME=$(cat /run/secrets/MODEL_NAME 2> /dev/null | grep '^' || cat /defaults/MODEL_NAME) && export MODEL_NAME \
26
+ && MODEL_PARAMS=$(cat /run/secrets/MODEL_PARAMS 2> /dev/null | grep '^' ||cat /defaults/MODEL_PARAMS) && export MODEL_PARAMS \
27
+ && MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL \
28
+ && APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null | grep '^' || cat /defaults/APP_COLOR) && export APP_COLOR \
29
+ && APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null | grep '^' || cat /defaults/APP_NAME) && export APP_NAME \
 
30
  && envsubst < ".template.env.local" > ".env.local"
31
 
32