nsarrazin HF staff commited on
Commit
ef0a6e6
1 Parent(s): fefa00b

parentheses

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