Spaces:
Runtime error
Runtime error
qweqwe
Browse files- Dockerfile +11 -10
Dockerfile
CHANGED
@@ -11,10 +11,6 @@ RUN git clone https://github.com/huggingface/chat-ui.git
|
|
11 |
|
12 |
WORKDIR /app/chat-ui
|
13 |
|
14 |
-
RUN --mount=type=cache,target=/app/.npm \
|
15 |
-
npm set cache /app/.npm && \
|
16 |
-
npm ci
|
17 |
-
|
18 |
RUN mkdir defaults
|
19 |
ADD defaults /defaults
|
20 |
RUN chmod -R 777 /defaults
|
@@ -26,15 +22,20 @@ RUN --mount=type=secret,id=MODEL_NAME,mode=0444 \
|
|
26 |
--mount=type=secret,id=MONGODB_URL,mode=0444 \
|
27 |
--mount=type=secret,id=APP_COLOR,mode=0444 \
|
28 |
--mount=type=secret,id=APP_NAME,mode=0444 \
|
29 |
-
MODEL_NAME=$(cat /run/secrets/MODEL_NAME 2> /dev/null || /defaults/MODEL_NAME) &&
|
30 |
-
&& MODEL_PARAMS=$(cat /run/secrets/MODEL_PARAMS 2> /dev/null || /defaults/MODEL_PARAMS) &&
|
31 |
-
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null || /defaults/MONGODB_URL) &&
|
32 |
-
&& APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null || /defaults/APP_COLOR) &&
|
33 |
-
&& APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null || /defaults/APP_NAME) &&
|
34 |
-
&& echo "
|
35 |
&& envsubst < ".template.env.local" > ".env.local"
|
36 |
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
RUN npm run build
|
39 |
|
40 |
FROM ghcr.io/huggingface/text-generation-inference:latest
|
|
|
11 |
|
12 |
WORKDIR /app/chat-ui
|
13 |
|
|
|
|
|
|
|
|
|
14 |
RUN mkdir defaults
|
15 |
ADD defaults /defaults
|
16 |
RUN chmod -R 777 /defaults
|
|
|
22 |
--mount=type=secret,id=MONGODB_URL,mode=0444 \
|
23 |
--mount=type=secret,id=APP_COLOR,mode=0444 \
|
24 |
--mount=type=secret,id=APP_NAME,mode=0444 \
|
25 |
+
MODEL_NAME=$(cat /run/secrets/MODEL_NAME 2> /dev/null || /defaults/MODEL_NAME) && echo MODEL_NAME \
|
26 |
+
&& MODEL_PARAMS=$(cat /run/secrets/MODEL_PARAMS 2> /dev/null || /defaults/MODEL_PARAMS) && echo MODEL_PARAMS \
|
27 |
+
&& MONGODB_URL=$(cat /run/secrets/MONGODB_URL 2> /dev/null || /defaults/MONGODB_URL) && echo MONGODB_URL \
|
28 |
+
&& APP_COLOR=$(cat /run/secrets/APP_COLOR 2> /dev/null || /defaults/APP_COLOR) && echo APP_COLOR \
|
29 |
+
&& APP_NAME=$(cat /run/secrets/APP_NAME 2> /dev/null || /defaults/APP_NAME) && echo APP_NAME \
|
30 |
+
&& echo "vars hello" \
|
31 |
&& envsubst < ".template.env.local" > ".env.local"
|
32 |
|
33 |
|
34 |
+
|
35 |
+
RUN --mount=type=cache,target=/app/.npm \
|
36 |
+
npm set cache /app/.npm && \
|
37 |
+
npm ci
|
38 |
+
|
39 |
RUN npm run build
|
40 |
|
41 |
FROM ghcr.io/huggingface/text-generation-inference:latest
|