rock1110 commited on
Commit
b85d79b
·
verified ·
1 Parent(s): 8d0a777

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python base image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy your code and requirements into the container
8
+ COPY requirements.txt ./
9
+ COPY app.py ./
10
+
11
+ # Install Python dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Expose the default Streamlit port
15
+ EXPOSE 8501
16
+
17
+ # Run your Streamlit app
18
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]