File size: 529 Bytes
ce37c44 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Container for hosting the task (e.g. on Hugging Face Spaces, Cloud Run, Fly, any Docker host)
FROM python:3.12-slim
# git is needed because pyproject installs nicewebrl from a git URL
RUN apt-get update && apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir uv
WORKDIR /app
COPY . .
RUN uv sync --frozen --no-dev
# Hugging Face Spaces serves on 7860; RELOAD off in production
ENV PORT=7860 \
RELOAD=0
EXPOSE 7860
CMD ["uv", "run", "python", "web_app.py"]
|