Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
# Create app directory
|
4 |
-
WORKDIR /
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
8 |
|
9 |
EXPOSE 5000
|
10 |
-
CMD [
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
# Create app directory
|
4 |
+
WORKDIR /app
|
5 |
|
6 |
+
COPY ./requirements.txt /app
|
7 |
+
COPY ./app.py /app
|
8 |
+
|
9 |
+
RUN pip install -r requirements.txt
|
10 |
|
11 |
EXPOSE 5000
|
12 |
+
CMD ["flask", "run", "--host", "0.0.0.0"]
|