c2a / Dockerfile
ffreemt
Update env PORT=7860
c7b9a90
raw
history blame
368 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 mkdir -p /app/data
RUN chmod -R 777 /app/data
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE $PORT
CMD ["python", "app.py", "--host", "0.0.0.0:$PORT"]