Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +0 -4
Dockerfile
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
ARG MODEL_NAME
|
2 |
-
ARG MODEL_PARAMS
|
3 |
ARG MODEL_PROMPT_TEMPLATE
|
4 |
ARG APP_COLOR
|
5 |
ARG APP_NAME
|
@@ -7,7 +6,6 @@ ARG APP_NAME
|
|
7 |
|
8 |
FROM node:20 as chatui-builder
|
9 |
ARG MODEL_NAME
|
10 |
-
ARG MODEL_PARAMS
|
11 |
ARG APP_COLOR
|
12 |
ARG APP_NAME
|
13 |
ARG MODEL_PROMPT_TEMPLATE
|
@@ -33,7 +31,6 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
33 |
--mount=type=secret,id=BASEURL,mode=0444 \
|
34 |
--mount=type=secret,id=HF_TOKEN,mode=0444 \
|
35 |
export MODEL_NAME="${MODEL_NAME:=$(cat /defaults/MODEL_NAME)}" \
|
36 |
-
&& export MODEL_PARAMS="${MODEL_PARAMS:=$(cat /defaults/MODEL_PARAMS)}" \
|
37 |
&& export MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:=$(cat /defaults/MODEL_PROMPT_TEMPLATE)}" \
|
38 |
&& export APP_COLOR="${APP_COLOR:=$(cat /defaults/APP_COLOR)}" \
|
39 |
&& export APP_NAME="${APP_NAME:=$(cat /defaults/APP_NAME)}" \
|
@@ -53,7 +50,6 @@ RUN npm run build
|
|
53 |
FROM ghcr.io/huggingface/text-generation-inference:2.1.1
|
54 |
|
55 |
ARG MODEL_NAME
|
56 |
-
ARG MODEL_PARAMS
|
57 |
ARG MODEL_PROMPT_TEMPLATE
|
58 |
ARG APP_COLOR
|
59 |
ARG APP_NAME
|
|
|
1 |
ARG MODEL_NAME
|
|
|
2 |
ARG MODEL_PROMPT_TEMPLATE
|
3 |
ARG APP_COLOR
|
4 |
ARG APP_NAME
|
|
|
6 |
|
7 |
FROM node:20 as chatui-builder
|
8 |
ARG MODEL_NAME
|
|
|
9 |
ARG APP_COLOR
|
10 |
ARG APP_NAME
|
11 |
ARG MODEL_PROMPT_TEMPLATE
|
|
|
31 |
--mount=type=secret,id=BASEURL,mode=0444 \
|
32 |
--mount=type=secret,id=HF_TOKEN,mode=0444 \
|
33 |
export MODEL_NAME="${MODEL_NAME:=$(cat /defaults/MODEL_NAME)}" \
|
|
|
34 |
&& export MODEL_PROMPT_TEMPLATE="${MODEL_PROMPT_TEMPLATE:=$(cat /defaults/MODEL_PROMPT_TEMPLATE)}" \
|
35 |
&& export APP_COLOR="${APP_COLOR:=$(cat /defaults/APP_COLOR)}" \
|
36 |
&& export APP_NAME="${APP_NAME:=$(cat /defaults/APP_NAME)}" \
|
|
|
50 |
FROM ghcr.io/huggingface/text-generation-inference:2.1.1
|
51 |
|
52 |
ARG MODEL_NAME
|
|
|
53 |
ARG MODEL_PROMPT_TEMPLATE
|
54 |
ARG APP_COLOR
|
55 |
ARG APP_NAME
|