face_verify / Dockerfile
subhan971's picture
Update Dockerfile
b57f32e verified
Raw
History Blame Contribute Delete
629 Bytes
# Simplified Dockerfile for Hugging Face Spaces
FROM python:3.10-slim
WORKDIR /app
# Install minimal system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Create directories
RUN mkdir -p uploads temp models
# Expose port
EXPOSE 7860
# Environment
ENV PORT=7860 \
HOST=0.0.0.0 \
PYTHONUNBUFFERED=1
# Run
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]