lalalic commited on
Commit
172a2b1
1 Parent(s): f67c550

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV HOME=/home/user \
6
+ PATH=/home/user/.local/bin:$PATH
7
+
8
+ WORKDIR $HOME
9
+
10
+ COPY ./requirements.txt $HOME/requirements.txt
11
+
12
+ RUN pip install --no-cache-dir --upgrade -r $HOME/requirements.txt
13
+
14
+ COPY . .
15
+
16
+ WORKDIR $HOME
17
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app", "--timeout", "120"]