File size: 570 Bytes
0219b19
 
c6d5a36
0219b19
 
3fc0271
0219b19
1738002
0219b19
 
 
1738002
 
0219b19
 
 
 
 
c6d5a36
0219b19
 
 
1738002
0219b19
 
1738002
0219b19
 
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
27
28
29
# Use the full Python image, not slim
FROM python:3.10

# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive

# Install OpenCV dependencies
RUN apt-get update && apt-get install -y \
    libgl1 \
    libglib2.0-0 \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

# Create app directory
WORKDIR /app

# Copy all files
COPY . /app

# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Expose port (optional but good practice)
EXPOSE 7860

# Run the app (adjust according to your main file)
CMD ["python", "app.py"]