File size: 566 Bytes
7b467d9
4460dc8
743f440
4460dc8
 
743f440
507de35
 
 
743f440
50187cc
 
 
743f440
 
4460dc8
7b467d9
4460dc8
 
743f440
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.9

# Workdir inside the container
WORKDIR /app

# Install deps first (better cache)
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Streamlit needs a writable home (for machine_id, etc.)
ENV HOME=/tmp
RUN mkdir -p /tmp/.streamlit && chmod -R 777 /tmp/.streamlit

# Copy the entire repo (so /app now contains /src and any root files)
COPY . /app

# Expose Streamlit port
EXPOSE 8501

# Run the app from src/app.py
CMD ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]