Fourier_face / Dockerfile
Pastaaaaa2003's picture
yay app ready?
dc43ffb
Raw
History Blame Contribute Delete
475 Bytes
FROM python:3.11-slim
WORKDIR /app
# System deps for opencv-python-headless
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application source
COPY app.py .
COPY src/ ./src/
COPY index.html .
# HF Spaces requires port 7860
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]