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"] | |