Test HF Docker space doc method
Browse files- Dockerfile +10 -3
Dockerfile
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
FROM ghcr.io/berriai/litellm:main-v1.38.8-stable
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
-
|
8 |
|
|
|
9 |
RUN pip install langfuse>=2.0.0 prisma
|
10 |
|
|
|
|
|
|
|
|
|
11 |
CMD ["--port", "7860", "--config", "litellm_config.yaml"]
|
|
|
1 |
FROM ghcr.io/berriai/litellm:main-v1.38.8-stable
|
2 |
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
USER user
|
5 |
|
6 |
+
ENV HOME=/home/user \
|
7 |
+
PATH=/home/user/.local/bin:$PATH
|
8 |
|
9 |
+
WORKDIR $HOME/app
|
10 |
|
11 |
+
RUN pip install --no-cache-dir --upgrade pip
|
12 |
RUN pip install langfuse>=2.0.0 prisma
|
13 |
|
14 |
+
COPY --chown=user litellm_config.yaml .
|
15 |
+
|
16 |
+
RUN chmod +x entrypoint.sh
|
17 |
+
|
18 |
CMD ["--port", "7860", "--config", "litellm_config.yaml"]
|