Spaces:
Running
Running
FROM python:3.9 | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV PATH="/home/user/.local/bin:$PATH" | |
WORKDIR /app | |
RUN pip install --no-cache-dir --upgrade g4f g4f[all] curl_cffi | |
COPY --chown=user . /app | |
CMD ["python", "-m", "g4f", "--port", "7860"] | |