Spaces:
Sleeping
Sleeping
Commit
·
30bdc01
1
Parent(s):
714e772
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -13,16 +13,18 @@ WORKDIR $HOME/app
|
|
13 |
|
14 |
COPY --chown=user . $HOME/app
|
15 |
|
|
|
16 |
COPY FUNCTIONS.txt FUNCTIONS.txt
|
17 |
COPY functions.py functions.py
|
18 |
COPY app.py app.py
|
19 |
-
COPY start.sh start.sh
|
20 |
|
21 |
RUN pip install flask
|
22 |
RUN pip install gunicorn
|
23 |
RUN pip install flask-cors
|
24 |
|
25 |
|
|
|
|
|
26 |
|
27 |
# Command to start the Flask app with Gunicorn
|
28 |
CMD ["./start.sh"]
|
|
|
13 |
|
14 |
COPY --chown=user . $HOME/app
|
15 |
|
16 |
+
COPY start.sh start.sh
|
17 |
COPY FUNCTIONS.txt FUNCTIONS.txt
|
18 |
COPY functions.py functions.py
|
19 |
COPY app.py app.py
|
|
|
20 |
|
21 |
RUN pip install flask
|
22 |
RUN pip install gunicorn
|
23 |
RUN pip install flask-cors
|
24 |
|
25 |
|
26 |
+
# Grant execute permissions to the start script
|
27 |
+
RUN chmod +x start.sh
|
28 |
|
29 |
# Command to start the Flask app with Gunicorn
|
30 |
CMD ["./start.sh"]
|