WebHub360 commited on
Commit
ffde6b9
·
verified ·
1 Parent(s): 16ab260

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -32
Dockerfile CHANGED
@@ -6,38 +6,6 @@ FROM ghcr.io/huggingface/chat-ui:latest AS chat-ui
6
  # Use TGI image as base (includes libpython3.11 and CUDA runtime)
7
  FROM ghcr.io/huggingface/text-generation-inference:latest
8
 
9
- ARG MODEL_NAME=NousResearch/Hermes-3-Llama-3.1-8B
10
- ENV MODEL_NAME=${MODEL_NAME}
11
- ENV TZ=Europe/Paris
12
- ENV PORT=3000
13
- ENV DEBIAN_FRONTEND=noninteractive
14
-
15
- # Install Node.js & dotenv
16
- RUN apt-get update && \
17
- apt-get install -y curl gnupg && \
18
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
19
- apt-get install -y nodejs && \
20
- npm install -g dotenv-cli && \
21
- rm -rf /var/lib/apt/lists/*
22
-
23
- # Create a non-root user
24
- RUN useradd -m -u 1000 -s /bin/bash user && mkdir -p /app && chown -R user:user /app
25
-
26
- # Copy chat-ui build
27
- COPY --from=chat-ui --chown=user:user /app/node_modules /app/node_modules
28
- COPY --from=chat-ui --chown=user:user /app/package.json /app/package.json
29
- COPY --from=chat-ui --chown=user:user /app/build /app/build
30
- COPY --from=chat-ui --chown=user:user /app/.env /app/.env
31
-
32
- # Your config files
33
- COPY --chown=user:user .env.local /app/.env.local
34
- COPY --chown=user:user entrypoint.sh /app/entrypoint.sh
35
- RUN chmod +x /app/entrypoint.sh
36
-
37
- # Use non-root user
38
- USER user
39
- ENV HOME=/home/user
40
- ENV PATH=/home/user/.local/bin:$PATH
41
 
42
  # Entrypoint
43
  ENTRYPOINT ["/app/entrypoint.sh"]
 
6
  # Use TGI image as base (includes libpython3.11 and CUDA runtime)
7
  FROM ghcr.io/huggingface/text-generation-inference:latest
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  # Entrypoint
11
  ENTRYPOINT ["/app/entrypoint.sh"]