feature: Containers

This commit is contained in:
2026-01-21 12:06:04 +01:00
parent b68fa2614e
commit 7503356711
2 changed files with 36 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM python:3.9-slim
# Install system dependencies required for OpenCV
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port 5000
EXPOSE 5000
# Run the application
CMD ["python", "app.py"]