sight_chat / Dockerfile
fmegahed's picture
Update Dockerfile
c7a9a90 verified
raw
history blame
720 Bytes
FROM python:3.12.11-slim
# 1) Create and switch to the app directory
WORKDIR /app
# 2) Install system dependencies
RUN apt-get update && \
apt-get install -y build-essential curl git && \
rm -rf /var/lib/apt/lists/*
# 3) Copy & install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 4) Copy all your code and data into the container
COPY . .
# 5) Expose Streamlit’s default port
EXPOSE 8501
# 6) Healthcheck for Streamlit
HEALTHCHECK --interval=30s --timeout=5s \
CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# 7) Launch your app.py at root
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]