Spaces:
Build error
Build error
Commit
·
2943ec5
1
Parent(s):
d3bcaa7
Update Dockerfile.txt
Browse files- Dockerfile.txt +7 -3
Dockerfile.txt
CHANGED
@@ -10,8 +10,12 @@ COPY . /code
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
-
# Make port
|
14 |
-
EXPOSE
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# Run app.py when the container launches
|
17 |
-
CMD ["
|
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Make port 5000 available to the world outside this container
|
14 |
+
EXPOSE 5000
|
15 |
+
|
16 |
+
# Define environment variables for Flask to run in production mode
|
17 |
+
ENV FLASK_APP=app.py
|
18 |
+
ENV FLASK_RUN_HOST=0.0.0.0
|
19 |
|
20 |
# Run app.py when the container launches
|
21 |
+
CMD ["flask", "run"]
|