emotion_detection / Dockerfile
Gagan0141's picture
Update Dockerfile
5f6c18b verified
raw
history blame contribute delete
505 Bytes
FROM python:3.10-slim
# System dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libgl1 \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
WORKDIR /app
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Hugging Face default port
EXPOSE 7860
# Gunicorn entrypoint
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--workers", "2"]