Commit
·
67ed68b
1
Parent(s):
d46f9db
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -29,13 +29,13 @@ COPY .env.local.template .env.local.template
|
|
29 |
RUN mkdir defaults
|
30 |
ADD defaults /defaults
|
31 |
RUN chmod -R 777 /defaults
|
32 |
-
RUN --mount=type=secret,id=
|
33 |
MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
|
34 |
&& MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
|
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 /
|
39 |
&& HF_ACCESS_TOKEN=$(cat /run/secrets/TOKEN_SEC) && export HF_ACCESS_TOKEN && \
|
40 |
echo "${MONGODB_URL}" && \
|
41 |
envsubst < ".env.local.template" > ".env.local" \
|
@@ -73,13 +73,13 @@ RUN mkdir defaults
|
|
73 |
ADD defaults /defaults
|
74 |
RUN chmod -R 777 /defaults
|
75 |
|
76 |
-
RUN --mount=type=secret,id=
|
77 |
MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
|
78 |
&& MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
|
79 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
80 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
81 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
82 |
-
&& MONGODB_URL=$(cat /
|
83 |
&& HF_ACCESS_TOKEN=$(cat /run/secrets/TOKEN_SEC) && export HF_ACCESS_TOKEN && \
|
84 |
envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
|
85 |
&& rm entrypoint.sh.template
|
|
|
29 |
RUN mkdir defaults
|
30 |
ADD defaults /defaults
|
31 |
RUN chmod -R 777 /defaults
|
32 |
+
RUN --mount=type=secret,id=TOKEN_SEC,mode=0444 \
|
33 |
MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
|
34 |
&& MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
|
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 /defaults/MONGODB_URL) && export MONGODB_URL \
|
39 |
&& HF_ACCESS_TOKEN=$(cat /run/secrets/TOKEN_SEC) && export HF_ACCESS_TOKEN && \
|
40 |
echo "${MONGODB_URL}" && \
|
41 |
envsubst < ".env.local.template" > ".env.local" \
|
|
|
73 |
ADD defaults /defaults
|
74 |
RUN chmod -R 777 /defaults
|
75 |
|
76 |
+
RUN --mount=type=secret,id=TOKEN_SEC,mode=0444 \
|
77 |
MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
|
78 |
&& MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
|
79 |
&& MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:="$(cat /defaults/MODEL_PROMPT_TEMPLATE)"}" && export MODEL_PROMPT_TEMPLATE \
|
80 |
&& APP_COLOR="${APP_COLOR:="$(cat /defaults/APP_COLOR)"}" && export APP_COLOR \
|
81 |
&& APP_NAME="${APP_NAME:="$(cat /defaults/APP_NAME)"}" && export APP_NAME \
|
82 |
+
&& MONGODB_URL=$(cat /defaults/MONGODB_URL) && export MONGODB_URL \
|
83 |
&& HF_ACCESS_TOKEN=$(cat /run/secrets/TOKEN_SEC) && export HF_ACCESS_TOKEN && \
|
84 |
envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
|
85 |
&& rm entrypoint.sh.template
|