File size: 475 Bytes
a2b767a
53c97fd
 
ec346f3
53c97fd
 
a2b767a
 
 
 
 
 
 
 
ec346f3
53c97fd
a2b767a
ec346f3
53c97fd
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use an official Python runtime
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Set home so Streamlit writes ~/.streamlit inside /app
ENV HOME=/app

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest, including .streamlit folder
COPY . .

# Ensure /app is writable
RUN chmod -R 777 /app

EXPOSE 8501

CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]