Shakir60 commited on
Commit
8d20c7b
·
verified ·
1 Parent(s): 8c0fba4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python 3.10 slim image
2
+ FROM python:3.10-slim
3
+
4
+ # Set environment variables
5
+ ENV PYTHONUNBUFFERED=1
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Copy requirements file and install dependencies
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy all project files
15
+ COPY . .
16
+
17
+ # Expose the port Streamlit uses
18
+ EXPOSE 7860
19
+
20
+ # Run Streamlit app
21
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]