bdjwhdwjb
commited on
Update Dockerfile
Browse files- Dockerfile +6 -13
Dockerfile
CHANGED
@@ -1,20 +1,13 @@
|
|
1 |
-
# Use the official Python image from the Docker Hub
|
2 |
FROM python:3.9
|
3 |
|
4 |
-
|
5 |
-
WORKDIR /app
|
6 |
|
7 |
-
|
8 |
-
COPY
|
|
|
9 |
|
10 |
-
|
11 |
-
RUN pip install -r requirements.txt
|
12 |
|
13 |
-
|
14 |
-
COPY . .
|
15 |
|
16 |
-
# Expose the port the app runs on
|
17 |
-
EXPOSE 8080
|
18 |
-
|
19 |
-
# Define the command to run the application
|
20 |
CMD ["python", "app.py"]
|
|
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
WORKDIR /code
|
|
|
4 |
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
COPY ./app.py /code/app.py
|
7 |
+
COPY ./templates /code/templates
|
8 |
|
9 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
10 |
|
11 |
+
EXPOSE 7860
|
|
|
12 |
|
|
|
|
|
|
|
|
|
13 |
CMD ["python", "app.py"]
|