mike23415 commited on
Commit
bab1f39
·
verified ·
1 Parent(s): a1b9a21

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.9-slim
3
+
4
+ RUN apt-get update && \
5
+ apt-get install -y \
6
+ gcc \
7
+ libssl-dev \
8
+ wkhtmltopdf \
9
+ xvfb \
10
+ fonts-times-new-roman \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ WORKDIR /app
14
+ COPY requirements.txt .
15
+ RUN pip install -r requirements.txt
16
+
17
+ COPY . .
18
+
19
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--timeout", "600", "app:app"]