FREDFRED commited on
Commit
fbcad60
1 Parent(s): 3c90daf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -30,11 +30,11 @@ RUN mkdir defaults
30
  ADD defaults /defaults
31
  RUN chmod -R 777 /defaults
32
 
 
33
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444 \
34
  OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY) && export OPENAI_API_KEY && echo "${OPENAI_API_KEY}"
35
 
36
 
37
-
38
  RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
39
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
40
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
@@ -42,10 +42,12 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
42
  && APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
43
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
44
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
45
- echo "${MONGODB_URL}" && OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY) && \
46
  envsubst < ".env.local.template" > ".env.local" \
47
  && rm .env.local.template
48
 
 
 
49
  RUN cat .env.local
50
 
51
  RUN --mount=type=cache,target=/app/.npm \
 
30
  ADD defaults /defaults
31
  RUN chmod -R 777 /defaults
32
 
33
+
34
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444 \
35
  OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY) && export OPENAI_API_KEY && echo "${OPENAI_API_KEY}"
36
 
37
 
 
38
  RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
39
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
40
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
 
42
  && APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
43
  && APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
44
  && MONGODB_URL=$(cat /run/secrets/MONGODB_URL || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
45
+ echo "${MONGODB_URL}" && OPENAI_API_KEY="${OPENAI_API_KEY}" && \
46
  envsubst < ".env.local.template" > ".env.local" \
47
  && rm .env.local.template
48
 
49
+
50
+
51
  RUN cat .env.local
52
 
53
  RUN --mount=type=cache,target=/app/.npm \