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