2ndmodelv7 / Dockerfile
anujakkulkarni's picture
Create Dockerfile
5122fab verified
raw
history blame contribute delete
468 Bytes
FROM python:3.10-slim
# Install system dependencies (needed for TensorFlow image ops like Pillow/OpenCV)
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all app files
COPY . .
# Start Flask app (Hugging Face expects port 7860)
CMD ["python", "app.py"]