ch2a / Dockerfile
yxmnjxzx's picture
Update Dockerfile
ee20b0d verified
raw
history blame
304 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/lanqian528/chat2api.git /app
WORKDIR /app
RUN mkdir /app/data && chmod -R 777 /app/data
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5005
ENV API_PREFIX="nai"
CMD ["python", "app.py"]