FROM python:3.11-slim | |
WORKDIR /app | |
RUN apt update && apt install -y git && \ | |
git clone https://github.com/LanQian528/chat2api && \ | |
cd chat2api && pip install --no-cache-dir -r requirements.txt | |
RUN mkdir /app/data | |
RUN chmod -R 777 /app/data | |
EXPOSE 5005 | |
CMD ["python", "chat2api/app.py"] |