Spaces:
Running
on
A10G
Running
on
A10G
fix envsubst
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -6,9 +6,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
| 6 |
git gettext && \
|
| 7 |
rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
-
RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true
|
| 10 |
-
RUN --mount=type=secret,id=PREPROMPT,mode=0444,required=true
|
| 11 |
-
RUN --mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true
|
| 12 |
|
| 13 |
RUN git clone https://github.com/huggingface/chat-ui.git
|
| 14 |
|
|
@@ -20,7 +17,12 @@ RUN --mount=type=cache,target=/app/.npm \
|
|
| 20 |
|
| 21 |
|
| 22 |
COPY .template.env.local .template.env.local
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
RUN npm run build
|
| 25 |
|
| 26 |
FROM ghcr.io/huggingface/text-generation-inference:latest
|
|
|
|
| 6 |
git gettext && \
|
| 7 |
rm -rf /var/lib/apt/lists/*
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
RUN git clone https://github.com/huggingface/chat-ui.git
|
| 11 |
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
COPY .template.env.local .template.env.local
|
| 20 |
+
|
| 21 |
+
RUN --mount=type=secret,id=MODEL_NAME,mode=0444,required=true \
|
| 22 |
+
--mount=type=secret,id=PREPROMPT,mode=0444,required=true \
|
| 23 |
+
--mount=type=secret,id=MODEL_TEMPERATURE,mode=0444,required=true \
|
| 24 |
+
envsubst < ".template.env.local" > ".env.local"
|
| 25 |
+
|
| 26 |
RUN npm run build
|
| 27 |
|
| 28 |
FROM ghcr.io/huggingface/text-generation-inference:latest
|