yomna-ashraf commited on
Commit
1eacba7
·
verified ·
1 Parent(s): accc2e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -13
Dockerfile CHANGED
@@ -1,13 +1,11 @@
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 7860
12
-
13
- CMD ["python", "app.py"]
 
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