thewellermangroup commited on
Commit
10ec6b8
1 Parent(s): 3976ceb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -18,14 +18,11 @@ RUN pip install flask
18
  RUN pip install gunicorn
19
  RUN pip install flask-cors
20
 
21
- # Copy the file creation and application startup scripts
22
- COPY --chown=user start.sh start.sh
23
- COPY --chown=user /FUNCTIONS/functions.py /FUNCTIONS/functions.py
24
- COPY --chown=user app.py app.py
25
- COPY --chown=user /FUNCTIONS/FUNCTIONS.txt /FUNCTIONS/FUNCTIONS.txt
26
-
27
- # Grant execute permission to the start script
28
- RUN chmod +x start.sh
29
- # Command to start the Flask app with Gunicorn
30
- CMD ["./start.sh"]
31
 
 
18
  RUN pip install gunicorn
19
  RUN pip install flask-cors
20
 
21
+ COPY /FUNCTIONS/functions.py /FUNCTIONS/functions.py
22
+ COPY app.py app.py
23
+ COPY /FUNCTIONS/FUNCTIONS.txt /FUNCTIONS/FUNCTIONS.txt
24
+
25
+ RUN /FUNCTIONS/functions.py
26
+
27
+ CMD ["gunicorn","-b","0.0.0.0:7860", "app:app","--timeout","950"]
 
 
 
28