Saumya / Dockerfile
mrpoddaa's picture
Upload 4 files
dd2fe9c verified
raw
history blame contribute delete
439 Bytes
# ── Saumya · HuggingFace Spaces Docker Image ──
FROM python:3.11-slim
# HF Spaces runs as a non-root user
RUN useradd -m -u 1000 user
WORKDIR /app
# Install dependencies
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Copy application
COPY --chown=user . .
# HF Spaces exposes port 7860
EXPOSE 7860
USER user
CMD ["python", "app.py"]