File size: 631 Bytes
07b43fb
3531233
 
 
07b43fb
3531233
40a2831
45de809
40a2831
 
45de809
40a2831
 
3531233
 
07b43fb
40a2831
 
3531233
07b43fb
40a2831
3531233
 
 
45de809
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
26
FROM python:3.10-slim

WORKDIR /app

# Install system libraries required by Pillow and Streamlit uploader
RUN apt-get update && apt-get install -y \
    libjpeg-dev \
    zlib1g-dev \
    libpng-dev \
    libopenjp2-7 \
    libtiff-dev \
    libfreetype6-dev \
    fonts-dejavu-core \
    && rm -rf /var/lib/apt/lists/*

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

# Copy your Streamlit app
COPY src/streamlit_app.py .

EXPOSE 8501

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