sss
Browse files- Dockerfile +16 -9
Dockerfile
CHANGED
@@ -1,12 +1,19 @@
|
|
1 |
-
FROM
|
2 |
-
|
3 |
-
|
4 |
-
RUN adduser -D -u 1000 litellm
|
5 |
-
USER litellm
|
6 |
WORKDIR /app
|
7 |
-
ENV PATH="/home/litellm/.local/bin:$PATH"
|
8 |
|
9 |
-
|
10 |
-
COPY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
CMD ["
|
|
|
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"]
|