yomna-ashraf commited on
Commit
055a46c
·
verified ·
1 Parent(s): 4df4c38

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,11 +1,13 @@
1
- FROM python:3.9 # Use a Python 3.9 base image
2
 
3
- WORKDIR /app # Set the working directory in the container
4
 
5
- COPY requirements.txt ./ # Copy the requirements file
6
 
7
- RUN pip install --no-cache-dir -r requirements.txt # Install dependencies
8
 
9
- COPY app.py ./ # Copy your Flask app
10
 
11
- CMD ["python", "app.py"] # Command to run your Flask app
 
 
 
1
+ FROM python:3.10-slim
2
 
3
+ WORKDIR /code
4
 
5
+ COPY requirements.txt .
6
 
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ COPY . .
10
 
11
+ EXPOSE 5000
12
+
13
+ CMD ["python", "app.py"]