Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -31,7 +31,7 @@ ADD defaults /defaults
|
|
31 |
RUN chmod -R 777 /defaults
|
32 |
|
33 |
RUN --mount=type=secret,id=API_URL,mode=0444 \
|
34 |
-
API_URL=$(cat /run/secrets/API_URL) && export API_URL && echo "${API_URL}" >> "/defaults/.api_url" && cat /defaults/.
|
35 |
|
36 |
|
37 |
RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
@@ -41,7 +41,8 @@ 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 > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
|
44 |
-
echo "${MONGODB_URL}"
|
|
|
45 |
envsubst < ".env.local.template" > ".env.local" \
|
46 |
&& rm .env.local.template
|
47 |
|
|
|
31 |
RUN chmod -R 777 /defaults
|
32 |
|
33 |
RUN --mount=type=secret,id=API_URL,mode=0444 \
|
34 |
+
API_URL=$(cat /run/secrets/API_URL) && export API_URL && echo "${API_URL}" >> "/defaults/.api_url" && cat /defaults/.api_url
|
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 > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
|
44 |
+
echo "${MONGODB_URL}" \
|
45 |
+
&& API_URL=$(cat /defaults/.api_url) && export API_URL && echo "${API_URL}" \
|
46 |
envsubst < ".env.local.template" > ".env.local" \
|
47 |
&& rm .env.local.template
|
48 |
|