Spaces:
Paused
Paused
File size: 528 Bytes
cac6512 10d8a76 cac6512 10d8a76 cac6512 10d8a76 cac6512 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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"] |