File size: 544 Bytes
02853b5
5a0c6aa
02895e8
5a0c6aa
 
02895e8
5a0c6aa
 
 
 
 
 
02895e8
02853b5
4665e69
5a0c6aa
02895e8
4665e69
5a0c6aa
02895e8
4665e69
 
 
02895e8
4665e69
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
FROM python:3.9-slim

# Set the working directory
WORKDIR /app

# 1. Install ONLY the absolute necessities
RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    git \
    && rm -rf /var/lib/apt/lists/*

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

# 3. Copy the rest of the code
COPY . .

# 4. Streamlit environment variables
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0

# 5. Launch
CMD ["streamlit", "run", "streamlit_app.py"]