SayedShaun commited on
Commit
4fe1bc4
·
verified ·
1 Parent(s): f2f0846

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as a base
2
+ FROM python:3.9-slim
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 /app
9
+
10
+ # Copy .streamlit folder
11
+ COPY .streamlit /app/.streamlit
12
+
13
+ # Copy Data folder
14
+ COPY Data /app/Data
15
+
16
+ # Install the dependencies
17
+ RUN pip install -r requirements.txt
18
+
19
+ # Copy the rest of your application code into the container
20
+ COPY . /app
21
+
22
+ # Expose the port Streamlit runs on
23
+ EXPOSE 8501
24
+
25
+ # Run the Streamlit app
26
+ CMD ["streamlit", "run", "app.py"]