Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -31,8 +31,7 @@ ADD defaults /defaults
|
|
31 |
RUN chmod -R 777 /defaults
|
32 |
|
33 |
|
34 |
-
|
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 \
|
@@ -42,11 +41,13 @@ 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}" &&
|
46 |
-
envsubst < ".env.local.template" > ".env.local" \
|
47 |
&& rm .env.local.template
|
48 |
|
49 |
-
|
|
|
|
|
50 |
|
51 |
RUN cat .env.local
|
52 |
|
|
|
31 |
RUN chmod -R 777 /defaults
|
32 |
|
33 |
|
34 |
+
|
|
|
35 |
|
36 |
|
37 |
RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
|
41 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
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.1" \
|
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}" \
|
50 |
+
&& envsubst < ".env.local.1" > ".env.local" \
|
51 |
|
52 |
RUN cat .env.local
|
53 |
|