ahmedelbeshry commited on
Commit
3191ad4
1 Parent(s): 7e02cc7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -26
Dockerfile CHANGED
@@ -1,26 +1,26 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.11-slim
3
-
4
- # Set environment variables to avoid interactive prompts
5
- ENV DEBIAN_FRONTEND=noninteractive
6
-
7
- # Set the working directory in the container
8
- WORKDIR /app
9
-
10
- # Copy the current directory contents into the container at /app
11
- COPY . /app
12
-
13
- # Install any needed packages specified in requirements.txt
14
- RUN pip install --no-cache-dir -r requirements.txt
15
-
16
- # Copy and set environment variables from .env file
17
- COPY .env .env
18
-
19
- # Expose the port the Flask app runs on
20
- EXPOSE 5000
21
-
22
- # Expose the port the Streamlit app runs on
23
- EXPOSE 8501
24
-
25
- # Run the Flask app and Streamlit app using a single CMD
26
- CMD ["streamlit", "run", "app.py"]
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.11-slim
3
+
4
+ # Set environment variables to avoid interactive prompts
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+
7
+ # Set the working directory in the container
8
+ WORKDIR /app
9
+
10
+ # Copy the current directory contents into the container at /app
11
+ COPY . /app
12
+
13
+ # Install any needed packages specified in requirements.txt
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy and set environment variables from .env file
17
+ #COPY .env .env
18
+
19
+ # Expose the port the Flask app runs on
20
+ EXPOSE 5000
21
+
22
+ # Expose the port the Streamlit app runs on
23
+ EXPOSE 8501
24
+
25
+ # Run the Flask app and Streamlit app using a single CMD
26
+ CMD ["streamlit", "run", "app.py"]