ashish-soni08's picture
Update Dockerfile
61df821 verified
raw
history blame contribute delete
625 Bytes
FROM python:3.10.12-slim
WORKDIR /app
# Install system-level dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy everything into the container
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Streamlit default port
EXPOSE 8501
# Health check (optional)
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# Launch the Streamlit app
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]