zai-api / Dockerfile
bluewinliang's picture
Upload Dockerfile
10d8a76 verified
raw
history blame contribute delete
528 Bytes
FROM python:3.13-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
gcc \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/zhaoxiaozhao07/zai-api.git /app
RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
RUN python -c "from browserforge.headers import HeaderGenerator; HeaderGenerator()" || true
RUN chmod -R 777 /usr/local/lib/python3.13/site-packages/browserforge/
ENV LISTEN_PORT=7860
EXPOSE 7860
CMD ["python", "main.py"]