CoolFace
Apppublic

soleil-kamitto/skinscreen

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1FROM python:3.11-slim2 3RUN apt-get update && apt-get install -y --no-install-recommends \4    libpq-dev gcc libgl1 libglib2.0-0 \5    && rm -rf /var/lib/apt/lists/*6 7# Hugging Face Spaces runs Docker containers as UID 1000 — create a matching8# user so the app can write the SQLite db and media/ uploads at runtime.9RUN useradd -m -u 1000 user10WORKDIR /app11RUN chown user:user /app12 13COPY requirements.txt .14RUN pip install --no-cache-dir -r requirements.txt15 16COPY --chown=user app ./app17 18USER user19 20EXPOSE 786021 22# Railway/other PaaS inject $PORT; Hugging Face Spaces doesn't, so this falls23# back to 7860 to match the app_port declared in README.md's Space metadata.24CMD uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-7860}25