nsarrazin HF staff commited on
Commit
ff58a33
1 Parent(s): cedc7ab
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -32,10 +32,9 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
32
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
33
  && APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
34
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
35
- && MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL
36
-
37
- RUN echo "${MONGODB_URL}"
38
- RUN envsubst < ".env.local.template" > ".env.local" \
39
  && rm .env.local.template
40
 
41
 
@@ -74,9 +73,8 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
74
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
75
  && APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
76
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
77
- && MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL
78
-
79
- RUN envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
80
  && rm entrypoint.sh.template
81
 
82
 
 
32
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
33
  && APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
34
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
35
+ && MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
36
+ echo "${MONGODB_URL}" && \
37
+ envsubst < ".env.local.template" > ".env.local" \
 
38
  && rm .env.local.template
39
 
40
 
 
73
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
74
  && APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
75
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
76
+ && MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
77
+ envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
 
78
  && rm entrypoint.sh.template
79
 
80