Do0rMaMu commited on
Commit
346465c
1 Parent(s): 50ec527

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -11
Dockerfile CHANGED
@@ -1,18 +1,12 @@
1
- # Use the official Python image as the base image
2
- FROM python:3.9-slim
3
 
4
  # Set the working directory in the container
5
- WORKDIR /app
6
 
7
- # Copy the requirements file to the container
8
- COPY requirements.txt .
9
-
10
- # Install the dependencies
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Copy the rest of the application code to the container
14
  COPY . .
15
 
16
-
 
17
  # Define the command to run the Flask app
18
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10.11
 
2
 
3
  # Set the working directory in the container
4
+ WORKDIR /code
5
 
6
+ # Copy the current directory contents into the container at /usr/src/app
 
 
 
 
 
 
7
  COPY . .
8
 
9
+ # Install any needed packages specified in requirements.txt
10
+ RUN pip install -r requirements.txt
11
  # Define the command to run the Flask app
12
  CMD ["python", "app.py"]