File size: 351 Bytes
78b8139
 
 
ee20b0d
77a458b
78b8139
4ee3be1
78b8139
 
77a458b
cef7618
77a458b
 
 
2f5cc34
7af3edd
78b8139
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11
RUN apt update 
RUN apt install git
RUN git clone https://github.com/lanqian528/chat2api.git /app

WORKDIR "app"

RUN mkdir -p /app/data
RUN chmod -R 777 /app/data
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install python-multipart

EXPOSE 5005

ENV API_PREFIX="nai"

CMD ["python", "app.py", "--host", "0.0.0.0:5005"]