arshtech commited on
Commit
7c3aef6
·
verified ·
1 Parent(s): be3043c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+
4
+ # set workdir
5
+ WORKDIR /app
6
+
7
+
8
+ # install build deps for bcrypt
9
+ RUN apt-get update && apt-get install -y build-essential libssl-dev libffi-dev python3-dev && rm -rf /var/lib/apt/lists/*
10
+
11
+
12
+ COPY requirements.txt ./
13
+ RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
14
+
15
+
16
+ COPY . /app
17
+
18
+
19
+ ENV FLASK_APP=app.py
20
+ ENV FLASK_RUN_HOST=0.0.0.0
21
+ ENV PORT=7860
22
+
23
+
24
+ EXPOSE 7860
25
+
26
+
27
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]