Ari commited on
Commit
3aeb3ce
·
verified ·
1 Parent(s): d10147d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a Python image as base
2
+ FROM python:3.10-slim
3
+
4
+ # Install dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ wkhtmltopdf \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Copy the requirements file
10
+ COPY requirements.txt .
11
+
12
+ # Install Python dependencies
13
+ RUN pip install -r requirements.txt
14
+
15
+ # Copy your app code
16
+ COPY . /app
17
+
18
+ WORKDIR /app
19
+
20
+ # Run your app
21
+ CMD ["python", "app.py"]