parson commited on
Commit
f1b6ee5
·
verified ·
1 Parent(s): 3267348

Deploy LiteLLM proxy

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,17 +1,13 @@
1
- FROM python:3.11-slim
2
 
3
- ENV PYTHONDONTWRITEBYTECODE=1 \
4
- PYTHONUNBUFFERED=1 \
5
- PORT=7860 \
6
  HOST=0.0.0.0
7
 
8
  WORKDIR /app
9
 
10
- # LiteLLM proxy (OpenAI-compatible gateway)
11
- RUN pip install --no-cache-dir "litellm[proxy]"
12
-
13
  COPY config.yaml /app/config.yaml
14
 
15
  EXPOSE 7860
16
 
17
- CMD ["litellm", "--config", "/app/config.yaml"]
 
 
1
+ FROM docker.litellm.ai/berriai/litellm-database:main-stable
2
 
3
+ ENV PORT=7860 \
 
 
4
  HOST=0.0.0.0
5
 
6
  WORKDIR /app
7
 
 
 
 
8
  COPY config.yaml /app/config.yaml
9
 
10
  EXPOSE 7860
11
 
12
+ # Base image sets ENTRYPOINT to litellm.
13
+ CMD ["--port", "7860", "--host", "0.0.0.0", "--config", "/app/config.yaml"]