Spaces:
Build error
Build error
Commit
•
58311b9
1
Parent(s):
91be08b
Update Dockerfile
Browse files- Dockerfile +12 -2
Dockerfile
CHANGED
@@ -11,6 +11,10 @@ ARG MODEL_PARAMS
|
|
11 |
ARG APP_COLOR
|
12 |
ARG APP_NAME
|
13 |
ARG MODEL_PROMPT_TEMPLATE
|
|
|
|
|
|
|
|
|
14 |
|
15 |
WORKDIR /app
|
16 |
|
@@ -35,7 +39,11 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
35 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
36 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
37 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
38 |
-
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL
|
|
|
|
|
|
|
|
|
39 |
echo "${MONGODB_URL}" && \
|
40 |
envsubst < ".env.local.template" > ".env.local" \
|
41 |
&& rm .env.local.template
|
@@ -55,6 +63,7 @@ ARG MODEL_PARAMS
|
|
55 |
ARG MODEL_PROMPT_TEMPLATE
|
56 |
ARG APP_COLOR
|
57 |
ARG APP_NAME
|
|
|
58 |
|
59 |
ENV TZ=Europe/Paris \
|
60 |
PORT=3000
|
@@ -78,7 +87,8 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
78 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
79 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
80 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
81 |
-
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL
|
|
|
82 |
envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
|
83 |
&& rm entrypoint.sh.template
|
84 |
|
|
|
11 |
ARG APP_COLOR
|
12 |
ARG APP_NAME
|
13 |
ARG MODEL_PROMPT_TEMPLATE
|
14 |
+
ARG NOTUX_TGI_URL
|
15 |
+
ARG PARQUET_EXPORT_DATASET
|
16 |
+
ARG PARQUET_EXPORT_HF_TOKEN
|
17 |
+
ARG PARQUET_EXPORT_SECRET
|
18 |
|
19 |
WORKDIR /app
|
20 |
|
|
|
39 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
40 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
41 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
42 |
+
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL \
|
43 |
+
&& export NOTUX_TGI_URL \
|
44 |
+
&& export PARQUET_EXPORT_DATASET \
|
45 |
+
&& export PARQUET_EXPORT_HF_TOKEN \
|
46 |
+
&& export PARQUET_EXPORT_SECRET && \
|
47 |
echo "${MONGODB_URL}" && \
|
48 |
envsubst < ".env.local.template" > ".env.local" \
|
49 |
&& rm .env.local.template
|
|
|
63 |
ARG MODEL_PROMPT_TEMPLATE
|
64 |
ARG APP_COLOR
|
65 |
ARG APP_NAME
|
66 |
+
ARG NOTUX_TGI_URL
|
67 |
|
68 |
ENV TZ=Europe/Paris \
|
69 |
PORT=3000
|
|
|
87 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
88 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
89 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
90 |
+
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL \
|
91 |
+
&& export NOTUX_TGI_URL && \
|
92 |
envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
|
93 |
&& rm entrypoint.sh.template
|
94 |
|