ronke123 commited on
Commit
b6e4bac
·
verified ·
1 Parent(s): ee8141d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install system dependencies for OpenCV/Pillow image rendering
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ libsm6 \
7
+ libxext6 \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ WORKDIR /code
11
+
12
+ COPY ./requirements.txt /code/requirements.txt
13
+
14
+ # Install standard CPU wheels
15
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
+
17
+ COPY . .
18
+
19
+ CMD ["python", "app.py"]