ministerchief commited on
Commit
89c64ae
·
verified ·
1 Parent(s): e84c544

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # System packages for Pillow/img2pdf support
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ libjpeg-dev \
9
+ zlib1g-dev \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ COPY requirements.txt .
13
+
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ COPY . .
17
+
18
+ EXPOSE 5000
19
+
20
+ CMD ["python", "app.py"]