Spaces:
Runtime error
Runtime error
Commit
·
8149bdd
1
Parent(s):
123a5f5
final commit
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -3,6 +3,8 @@ FROM python:3.10
|
|
3 |
# Set the working directory to /code
|
4 |
WORKDIR /code
|
5 |
|
|
|
|
|
6 |
# Copy the current directory contents into the container at /code
|
7 |
COPY ./requirements.txt /code/requirements.txt
|
8 |
|
@@ -23,4 +25,4 @@ WORKDIR $HOME/app
|
|
23 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
24 |
COPY --chown=user . $HOME/app
|
25 |
|
26 |
-
CMD ["
|
|
|
3 |
# Set the working directory to /code
|
4 |
WORKDIR /code
|
5 |
|
6 |
+
ENV FLASK_APP=app.py
|
7 |
+
|
8 |
# Copy the current directory contents into the container at /code
|
9 |
COPY ./requirements.txt /code/requirements.txt
|
10 |
|
|
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
+
CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]
|