Kaballas commited on
Commit
023b433
·
1 Parent(s): ca0ae1e
Files changed (1) hide show
  1. Dockerfile +16 -9
Dockerfile CHANGED
@@ -1,12 +1,19 @@
1
- FROM cgr.dev/chainguard/python:3.12
2
- WORKDIR /app
3
- COPY requirements.txt .
4
- RUN adduser -D -u 1000 litellm
5
- USER litellm
6
  WORKDIR /app
7
- ENV PATH="/home/litellm/.local/bin:$PATH"
8
 
9
- COPY --from=builder --chown=litellm:litellm /root/.local /home/litellm/.local
10
- COPY --chown=litellm:litellm . /app
 
 
 
 
 
 
 
 
 
 
11
 
12
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM ghcr.io/berriai/litellm:main-stable
2
+
3
+ # Set the working directory to /app
 
 
4
  WORKDIR /app
 
5
 
6
+ # Copy the configuration file into the container at /app
7
+ COPY config.yaml .
8
+
9
+ # Make sure your docker/entrypoint.sh is executable
10
+ RUN chmod +x ./docker/entrypoint.sh
11
+
12
+ # Expose the necessary port
13
+ EXPOSE 7860/tcp
14
+
15
+ # Override the CMD instruction with your desired command and arguments
16
+ # WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
17
+ # CMD ["--port", "7860", "--config", "config.yaml"]
18
 
19
+ CMD ["--port", "7860", "--config", "config.yaml", "--detailed_debug"]