qnguyen3 commited on
Commit
6b0d410
1 Parent(s): c344562
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -29,7 +29,7 @@ COPY .env.local.template .env.local.template
29
  RUN mkdir defaults
30
  ADD defaults /defaults
31
  RUN chmod -R 777 /defaults
32
- RUN --mount=type=secret,id=MONGODB_URL,mode=0444 --mount=type=secret,id=MODEL_URL,mode=0444 --mount=type=secret,id=OPENID_CLIENT_ID,mode=0444 --mount=type=secret,id=OPENID_CLIENT_SECRET,mode=0444\
33
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
34
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
35
  && MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
@@ -37,8 +37,6 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 --mount=type=secret,id=MODEL_UR
37
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
38
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && echo "${MONGODB_URL}" && \
39
  MODEL_URL=$(cat /run/secrets/MODEL_URL) && export MODEL_URL && echo "${MODEL_URL}" &&\
40
- OPENID_CLIENT_ID=$(cat /run/secrets/OPENID_CLIENT_ID) && export OPENID_CLIENT_ID && echo "${OPENID_CLIENT_ID}" &&\
41
- OPENID_CLIENT_SECRET=$(cat /run/secrets/OPENID_CLIENT_SECRET) && export OPENID_CLIENT_SECRET && echo "${OPENID_CLIENT_SECRET}" &&\
42
  envsubst < ".env.local.template" > ".env.local" \
43
  && rm .env.local.template
44
 
 
29
  RUN mkdir defaults
30
  ADD defaults /defaults
31
  RUN chmod -R 777 /defaults
32
+ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 --mount=type=secret,id=MODEL_URL,mode=0444 \
33
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
34
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
35
  && MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
 
37
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
38
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && echo "${MONGODB_URL}" && \
39
  MODEL_URL=$(cat /run/secrets/MODEL_URL) && export MODEL_URL && echo "${MODEL_URL}" &&\
 
 
40
  envsubst < ".env.local.template" > ".env.local" \
41
  && rm .env.local.template
42