bluewinliang commited on
Commit
91494d5
·
verified ·
1 Parent(s): df748a0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+ WORKDIR /app
3
+ RUN apt-get update && \
4
+ apt-get install -y git && \
5
+ apt-get clean && \
6
+ rm -rf /var/lib/apt/lists/*
7
+ RUN git clone https://github.com/snailyp/zai-proxy.git /app
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+ EXPOSE 7860
10
+ CMD uvicorn main:app --host 0.0.0.0 --port ${PORT:-7860}