omrahm commited on
Commit
65d8bc2
1 Parent(s): 67778da

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -13
Dockerfile CHANGED
@@ -1,21 +1,15 @@
1
- FROM golang
2
 
3
  RUN apt-get update && \
4
  apt-get install -y git
5
 
6
- RUN git clone https://github.com/zhu327/gemini-openai-proxy.git /app
7
-
8
- RUN chmod 777 -R /app
9
-
10
  WORKDIR /app
11
 
12
- ENV GPT_4_VISION_PREVIEW=gemini-1.5-pro-latest
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 [ "./gemini" ]
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