File size: 525 Bytes
d6c875b
bd6d300
 
e951894
bd6d300
 
d6c875b
e951894
bd6d300
e951894
 
 
bd6d300
e951894
 
bd6d300
d6c875b
bd6d300
 
e951894
d6c875b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use a minimal Python base image
FROM python:3.9-slim

# Set working directory
WORKDIR /app

# Copy requirements first for caching
COPY requirements.txt .

# Install dependencies
RUN pip install --upgrade pip && \
    pip install -r requirements.txt

# Copy all files (including model folder) into container
COPY . .

# Expose Streamlit port
EXPOSE 8501

# Run the Streamlit app
CMD ["streamlit", "run", "app.py", \
     "--server.port=8501", \
     "--server.address=0.0.0.0", \
     "--server.enableXsrfProtection=false"]