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

forgot cat

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -22,11 +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 '^' || /defaults/MODEL_NAME) && echo "$MODEL_NAME" \
26
- && MODEL_PARAMS=$(cat /run/secrets/MODEL_PARAMS 2> /dev/null | grep '^' || /defaults/MODEL_PARAMS) && echo "$MODEL_PARAMS" \
27
- && MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null | grep '^' || /defaults/MONGODB_URL) && echo "$MONGODB_URL" \
28
- && APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null | grep '^' || /defaults/APP_COLOR) && echo "$APP_COLOR" \
29
- && APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null | grep '^' || /defaults/APP_NAME) && echo "$APP_NAME" \
30
  && echo "vars hello" \
31
  && envsubst < ".template.env.local" > ".env.local"
32
 
 
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