File size: 368 Bytes
ef60910 c7b9a90 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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"]
|