File size: 524 Bytes
11f5e95
2697fc7
65e9b80
 
 
 
 
 
 
 
 
 
2697fc7
 
65e9b80
2697fc7
 
 
65e9b80
2697fc7
 
cce1215
 
53a0352
65e9b80
11f5e95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.9

# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y \
    libgl1-mesa-glx \
    libglib2.0-0 \
    libsm6 \
    libxrender1 \
    libxext6 \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /code

# Copy and install Python dependencies
COPY requirements.txt /code/
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Copy all application files
COPY . /code/

# Set environment variables
ENV PYTHONUNBUFFERED=1

# Run the application
CMD ["python", "app.py"]