CoolFace
Apppublic

manzz05/kitchenflow-v2

sourceHugging Facemitupdated 5mo agoView on Hugging Face
1likes
Dockerfile27 linesDownload Raw Back to root
1# ── Build stage ───────────────────────────────────────────────────────────────
2FROM python:3.11-slim
3
4# HF Spaces runs as non-root user 1000
5RUN useradd -m -u 1000 user
6USER user
7
8ENV HOME=/home/user \
9    PATH=/home/user/.local/bin:$PATH \
10    PYTHONUNBUFFERED=1
11
12WORKDIR /home/user/app
13
14# Install dependencies
15COPY --chown=user requirements.txt .
16RUN pip install --no-cache-dir --upgrade pip && \
17    pip install --no-cache-dir -r requirements.txt
18
19# Copy all source files
20COPY --chown=user . .
21
22# HF Spaces exposes port 7860
23EXPOSE 7860
24
25# Launch FastAPI — root "/" auto-redirects to "/docs"
26CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
27