Update Dockerfile
Browse files- Dockerfile +7 -13
Dockerfile
CHANGED
@@ -1,21 +1,15 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
RUN apt-get update && \
|
4 |
apt-get install -y git
|
5 |
|
6 |
-
RUN
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
WORKDIR /app
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
RUN sed -i "s/8080/7860/" main.go
|
15 |
-
|
16 |
-
RUN sed -i 's#/v1/#/api/v1/#g' api/router.go
|
17 |
-
|
18 |
-
RUN go build -o gemini main.go
|
19 |
|
20 |
-
CMD [ "
|
21 |
|
|
|
1 |
+
FROM python
|
2 |
|
3 |
RUN apt-get update && \
|
4 |
apt-get install -y git
|
5 |
|
6 |
+
RUN --mount=type=secret,id=GITHUB,mode=0444,required=true \
|
7 |
+
GITHUB=$(cat /run/secrets/GITHUB) && \
|
8 |
+
git clone https://${GITHUB}@github.com/omrahm/litellm.git /app
|
9 |
+
|
10 |
WORKDIR /app
|
11 |
|
12 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
+
CMD [ "litellm", "--config config.yaml", "--port 7860" ]
|
15 |
|