GeoGuess_Arena / Dockerfile
Joffrey Thomas
Sign in with Hugging Face: open models run on the player's HF account
2daed3f
Raw History Blame Contribute Delete
426 Bytes
FROM python:3.12-slim
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH" PYTHONUNBUFFERED=1 HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
EXPOSE 7860
CMD ["uvicorn", "arena.main:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips", "*"]