File size: 523 Bytes
7757f11
 
 
 
 
 
 
 
 
 
 
 
 
849e711
41b3a9d
7757f11
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9-slim

RUN apt-get update && apt-get install -y --no-install-recommends tzdata git && \
    rm -rf /var/lib/apt/lists/*

ENV TZ=Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /app

RUN git clone https://github.com/cnbeining/Zed2API.git .

RUN sed -i'' 's|'/chat/completions'|'/ai/v1/chat/completions'|g' /app/app.py

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8000

CMD ["uvicorn", "app:asgi_app", "--host", "0.0.0.0", "--port", "8000"]