thewellermangroup commited on
Commit
a7eb09d
1 Parent(s): 36d187a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ RUN apt-get update -y && apt-get install -y build-essential
4
+
5
+ WORKDIR /app
6
+
7
+ RUN useradd -m -u 1000 user
8
+ USER user
9
+ ENV HOME=/home/user \
10
+ PATH=/home/user/.local/bin:$PATH
11
+
12
+ WORKDIR $HOME/app
13
+
14
+ COPY --chown=user . $HOME/app
15
+
16
+ COPY app.py app.py
17
+ COPY functions.py functions.py
18
+
19
+ RUN pip install Flask
20
+ RUN pip install gunicorn
21
+ RUN pip install -U flask-cors
22
+
23
+ CMD ["python","funtions.py"]
24
+
25
+ CMD ["gunicorn","-b","0.0.0.0:7860", "app:app","--timeout","950"]