Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -3,6 +3,7 @@ ARG MODEL_PARAMS
|
|
3 |
ARG MODEL_PROMPT_TEMPLATE
|
4 |
ARG APP_COLOR
|
5 |
ARG APP_NAME
|
|
|
6 |
|
7 |
|
8 |
FROM node:19 as chatui-builder
|
@@ -11,6 +12,7 @@ ARG MODEL_PARAMS
|
|
11 |
ARG APP_COLOR
|
12 |
ARG APP_NAME
|
13 |
ARG MODEL_PROMPT_TEMPLATE
|
|
|
14 |
|
15 |
WORKDIR /app
|
16 |
|
@@ -35,6 +37,7 @@ 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" \
|
@@ -55,6 +58,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,6 +82,7 @@ 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
|
|
|
3 |
ARG MODEL_PROMPT_TEMPLATE
|
4 |
ARG APP_COLOR
|
5 |
ARG APP_NAME
|
6 |
+
ARG ENDPOINT
|
7 |
|
8 |
|
9 |
FROM node:19 as chatui-builder
|
|
|
12 |
ARG APP_COLOR
|
13 |
ARG APP_NAME
|
14 |
ARG MODEL_PROMPT_TEMPLATE
|
15 |
+
ARG ENDPOINT
|
16 |
|
17 |
WORKDIR /app
|
18 |
|
|
|
37 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
38 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
39 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
40 |
+
&& ENDPOINT="${ENDPOINT:="$(cat /defaults/ENDPOINT)"}" && export ENDPOINT \
|
41 |
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
|
42 |
echo "${MONGODB_URL}" && \
|
43 |
envsubst < ".env.local.template" > ".env.local" \
|
|
|
58 |
ARG MODEL_PROMPT_TEMPLATE
|
59 |
ARG APP_COLOR
|
60 |
ARG APP_NAME
|
61 |
+
ARG ENDPOINT
|
62 |
|
63 |
ENV TZ=Europe/Paris \
|
64 |
PORT=3000
|
|
|
82 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
83 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
84 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
85 |
+
&& ENDPOINT="${ENDPOINT:="$(cat /defaults/ENDPOINT)"}" && export ENDPOINT \
|
86 |
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL > /dev/null | grep '^' || cat /defaults/MONGODB_URL) && export MONGODB_URL && \
|
87 |
envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
|
88 |
&& rm entrypoint.sh.template
|