File size: 653 Bytes
45d60ba
 
a0f0109
45d60ba
a0f0109
 
45d60ba
 
 
a0f0109
 
45d60ba
 
 
a0f0109
45d60ba
 
a0f0109
 
45d60ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Dockerfile for Streamlit app
FROM python:3.10-slim

ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential libjpeg-dev libopenjp2-7 \
    libglib2.0-0 libsm6 libxrender1 libxext6 \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r /app/requirements.txt

COPY streamlit_app.py /app/streamlit_app.py
COPY Model2_exact_serialized.keras /app/Model2_exact_serialized.keras

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