thealper2 commited on
Commit
5b97a11
1 Parent(s): 0e8b145

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM python:3.10.12
3
+
4
+ # Set working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the required files into the container
8
+ COPY best_models /app/best_models
9
+ COPY app.py /app/app.py
10
+ COPY requirements.txt /app/requirements.txt
11
+
12
+ # Install necessary dependencies
13
+ RUN pip install --upgrade pip
14
+ RUN pip install -r requirements.txt
15
+
16
+ # Expose the port
17
+ EXPOSE 8501
18
+
19
+ # Command to run the Streamlit app
20
+ CMD ["streamlit", "run", "--server.port=8501", "app.py"]