bdjwhdwjb commited on
Commit
08c4694
·
verified ·
1 Parent(s): a008a43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Set the working directory in the container
5
- WORKDIR /app
6
 
7
- # Copy the requirements file into the container
8
- COPY requirements.txt .
 
9
 
10
- # Install the dependencies
11
- RUN pip install -r requirements.txt
12
 
13
- # Copy the rest of the application code into the container
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"]