Pneumonia_Detection / Dockerfile
Pushpak21's picture
Upload folder using huggingface_hub
45d60ba verified
raw
history blame contribute delete
653 Bytes
# 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"]