FREDFRED commited on
Commit
c1e0605
1 Parent(s): 792f64a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -29,6 +29,12 @@ 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 \
33
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
34
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
 
29
  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) && 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 \