broadfield-dev commited on
Commit
e6398fa
·
verified ·
1 Parent(s): 9e83cbc

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install wkhtmltopdf and dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ wkhtmltopdf \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ WORKDIR /app
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+ COPY . .
12
+
13
+ ENV PORT=7860
14
+ CMD ["python", "app.py"]