A-I4All commited on
Commit
a1d4616
·
verified ·
1 Parent(s): 7e865a8

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official python slim image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ build-essential \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements file
13
+ COPY requirements.txt .
14
+
15
+ # Install python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy the rest of the app
19
+ COPY app.py .
20
+
21
+ # Expose port (Streamlit default)
22
+ EXPOSE 7860
23
+
24
+ # Command to run the app
25
+ CMD ["streamlit", "run", "app.py", "--server.enableCORS=false", "--server.port=7860", "--server.headless=true"]