Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +12 -3
Dockerfile
CHANGED
|
@@ -3,11 +3,13 @@ FROM ghcr.io/huggingface/chat-ui:latest AS base
|
|
| 3 |
FROM ghcr.io/huggingface/text-generation-inference:latest AS final
|
| 4 |
|
| 5 |
# Set a default model name if none provided
|
| 6 |
-
ARG MODEL_NAME=
|
| 7 |
ENV MODEL_NAME=${MODEL_NAME}
|
| 8 |
|
| 9 |
ENV TZ=Europe/Paris \
|
| 10 |
-
PORT=3000
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# mongo installation
|
| 13 |
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
|
@@ -24,7 +26,14 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
| 24 |
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | /bin/bash -
|
| 25 |
|
| 26 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
| 27 |
-
nodejs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
rm -rf /var/lib/apt/lists/*
|
| 29 |
|
| 30 |
# image setup
|
|
|
|
| 3 |
FROM ghcr.io/huggingface/text-generation-inference:latest AS final
|
| 4 |
|
| 5 |
# Set a default model name if none provided
|
| 6 |
+
ARG MODEL_NAME=NousResearch/Hermes-3-Llama-3.1-8B
|
| 7 |
ENV MODEL_NAME=${MODEL_NAME}
|
| 8 |
|
| 9 |
ENV TZ=Europe/Paris \
|
| 10 |
+
PORT=3000 \
|
| 11 |
+
PYTHONPATH=/usr/lib/python3.11 \
|
| 12 |
+
LD_LIBRARY_PATH=/usr/lib/python3.11:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
|
| 13 |
|
| 14 |
# mongo installation
|
| 15 |
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
|
|
|
| 26 |
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | /bin/bash -
|
| 27 |
|
| 28 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
| 29 |
+
nodejs \
|
| 30 |
+
python3.11 \
|
| 31 |
+
python3.11-dev \
|
| 32 |
+
python3.11-distutils \
|
| 33 |
+
python3-pip \
|
| 34 |
+
python3.11-venv \
|
| 35 |
+
libpython3.11 \
|
| 36 |
+
libpython3.11-dev && \
|
| 37 |
rm -rf /var/lib/apt/lists/*
|
| 38 |
|
| 39 |
# image setup
|