face_detection / Dockerfile
arshtech's picture
Update Dockerfile
7d11b17 verified
raw
history blame contribute delete
387 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
# Use this for better debugging
CMD ["python", "-u", "app.py"]