lemonteaa commited on
Commit
d88c777
·
verified ·
1 Parent(s): 745ea7a

Test HF Docker space doc method

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -1,11 +1,18 @@
1
  FROM ghcr.io/berriai/litellm:main-v1.38.8-stable
2
 
3
- WORKDIR /app
 
4
 
5
- COPY litellm_config.yaml .
 
6
 
7
- RUN chmod +x entrypoint.sh
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"]