c2a / Dockerfile
ffreemt
Update app_port 5005 data dir
5d667f8
raw
history blame contribute delete
375 Bytes
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"]