Spaces:
Runtime error
Runtime error
expose secrets
Browse files- .env.template β .template.env.local +0 -0
- Dockerfile +5 -1
.env.template β .template.env.local
RENAMED
File without changes
|
Dockerfile
CHANGED
@@ -6,6 +6,10 @@ 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 git clone https://github.com/huggingface/chat-ui.git
|
10 |
|
11 |
WORKDIR /app/chat-ui
|
@@ -16,7 +20,7 @@ RUN --mount=type=cache,target=/app/.npm \
|
|
16 |
|
17 |
|
18 |
COPY .env.template .env.template
|
19 |
-
RUN envsubst < ".env.
|
20 |
RUN npm run build
|
21 |
|
22 |
FROM ghcr.io/huggingface/text-generation-inference:latest
|
|
|
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 |
|
15 |
WORKDIR /app/chat-ui
|
|
|
20 |
|
21 |
|
22 |
COPY .env.template .env.template
|
23 |
+
RUN envsubst < ".template.env.local" > ".env.local"
|
24 |
RUN npm run build
|
25 |
|
26 |
FROM ghcr.io/huggingface/text-generation-inference:latest
|