Spaces:
Running
Running
Deploy LiteLLM proxy
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
|
@@ -1,17 +1,13 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
ENV
|
| 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 |
-
|
|
|
|
|
|
| 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"]
|