File size: 375 Bytes
ef60910 69c8bc6 5d667f8 69c8bc6 ef60910 69c8bc6 af536bd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM python:3.11
RUN apt update && \
apt install git && \
git clone https://github.com/lanqian528/chat2api.git /app
ENV PIP_ROOT_USER_ACTION=ignore \
TZ=Asia/Shanghai \
PORT=7860
WORKDIR /app
RUN TZ=Asia/Shanghai > /etc/timezone && \
mkdir -p data && \
chmod 777 data && \
pip install --no-cache-dir -r requirements.txt
EXPOSE 5005
CMD ["python", "app.py"]
|