larrysim commited on
Commit
d6df442
·
verified ·
1 Parent(s): 79baafe

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python base image
2
+ FROM python:3.9-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements first for better caching
8
+ COPY requirements.txt .
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy all files
14
+ COPY . .
15
+
16
+ # Expose port
17
+ EXPOSE 7860
18
+
19
+ # Health check
20
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
21
+
22
+ # Run the application
23
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]