ehristoforu commited on
Commit
3393fee
1 Parent(s): f86f7e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -56,6 +56,9 @@ RUN --mount=type=secret,id=OPENID_CLIENT_ID,mode=0444 \
56
  RUN --mount=type=secret,id=OPENID_CLIENT_SECRET,mode=0444 \
57
  OPENID_CLIENT_SECRET=$(cat /run/secrets/OPENID_CLIENT_SECRET) && export OPENID_CLIENT_SECRET && echo "${OPENID_CLIENT_SECRET}" >> "/defaults/.openid.client_secret" && cat /defaults/.openid.client_secret
58
 
 
 
 
59
 
60
  RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
61
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
@@ -72,6 +75,7 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
72
  && VISIONCRAFT_API_KEY=$(cat /defaults/.visioncraft.key) && export VISIONCRAFT_API_KEY && echo "${VISIONCRAFT_API_KEY}" \
73
  && OPENID_CLIENT_ID=$(cat /defaults/.openid.client_id) && export OPENID_CLIENT_ID && echo "${OPENID_CLIENT_ID}" \
74
  && OPENID_CLIENT_SECRET=$(cat /defaults/.openid.client_secret) && export OPENID_CLIENT_SECRET && echo "${OPENID_CLIENT_SECRET}" \
 
75
  && envsubst < ".env.local.template" > ".env.local" \
76
  && rm .env.local.template && cat .env.local
77
 
 
56
  RUN --mount=type=secret,id=OPENID_CLIENT_SECRET,mode=0444 \
57
  OPENID_CLIENT_SECRET=$(cat /run/secrets/OPENID_CLIENT_SECRET) && export OPENID_CLIENT_SECRET && echo "${OPENID_CLIENT_SECRET}" >> "/defaults/.openid.client_secret" && cat /defaults/.openid.client_secret
58
 
59
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444 \
60
+ HF_TOKEN=$(cat /run/secrets/HF_TOKEN) && export OPENID_CLIENT_SECRET && echo "${HF_TOKEN}" >> "/defaults/.hf.token" && cat /defaults/.hf.token
61
+
62
 
63
  RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
64
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
 
75
  && VISIONCRAFT_API_KEY=$(cat /defaults/.visioncraft.key) && export VISIONCRAFT_API_KEY && echo "${VISIONCRAFT_API_KEY}" \
76
  && OPENID_CLIENT_ID=$(cat /defaults/.openid.client_id) && export OPENID_CLIENT_ID && echo "${OPENID_CLIENT_ID}" \
77
  && OPENID_CLIENT_SECRET=$(cat /defaults/.openid.client_secret) && export OPENID_CLIENT_SECRET && echo "${OPENID_CLIENT_SECRET}" \
78
+ && HF_TOKEN=$(cat /defaults/.hf.token) && export HF_TOKEN && echo "${HF_TOKEN}" \
79
  && envsubst < ".env.local.template" > ".env.local" \
80
  && rm .env.local.template && cat .env.local
81