limcheekin commited on
Commit
d15f355
1 Parent(s): 6dcccca

chore: added back MONGODB_URL and OPENID_CLIENT_SECRET

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -20,9 +20,13 @@ COPY .env.local.template .env.local.template
20
  RUN mkdir defaults
21
  ADD defaults /defaults
22
  RUN chmod -R 777 /defaults
23
- RUN APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
 
 
24
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
25
- && OPENID_CLIENT_ID="${OPENID_CLIENT_ID:="$(cat /defaults/OPENID_CLIENT_ID)"}" && export OPENID_CLIENT_ID && \
 
 
26
  envsubst < ".env.local.template" > ".env.local" \
27
  && rm .env.local.template
28
 
 
20
  RUN mkdir defaults
21
  ADD defaults /defaults
22
  RUN chmod -R 777 /defaults
23
+ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
24
+ --mount=type=secret,id=OPENID_CLIENT_SECRET,mode=0444 \
25
+ APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
26
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
27
+ && OPENID_CLIENT_ID="${OPENID_CLIENT_ID:="$(cat /defaults/OPENID_CLIENT_ID)"}" && export OPENID_CLIENT_ID \
28
+ && MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^') && export MONGODB_URL && \
29
+ OPENID_CLIENT_SECRET=$(cat /run/secrets/OPENID_CLIENT_SECRET > /dev/null | grep '^') && export OPENID_CLIENT_SECRET && \
30
  envsubst < ".env.local.template" > ".env.local" \
31
  && rm .env.local.template
32