Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -32,8 +32,7 @@ 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 |
-
&& echo OPENAI_API_KEY="${OPENAI_API_KEY}" >> .env.local.template
|
37 |
|
38 |
|
39 |
RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
@@ -43,7 +42,7 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
43 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
44 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
45 |
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
|
46 |
-
echo "${MONGODB_URL}" && \
|
47 |
envsubst < ".env.local.template" > ".env.local" \
|
48 |
&& rm .env.local.template && cat .env.local
|
49 |
|
|
|
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}" >> "/defaults/.openai.key" && cat /defaults/.openai.key
|
|
|
36 |
|
37 |
|
38 |
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 /defaults/.openai.key) && export OPENAI_API_KEY && echo "${OPENAI_API_KEY}" \
|
46 |
envsubst < ".env.local.template" > ".env.local" \
|
47 |
&& rm .env.local.template && cat .env.local
|
48 |
|