kalim / Dockerfile
YasserHaidar
Kalim Space deploy (e803a10)
bae15d1
Raw History Blame Contribute Delete
678 Bytes
# Kalim Chatbot - Docker Deployment
FROM python:3.11-slim
WORKDIR /app
# curl is needed by the HEALTHCHECK below; python:3.11-slim does not ship it.
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for caching
COPY requirements-deploy.txt .
RUN pip install --no-cache-dir -r requirements-deploy.txt
# Copy application code
COPY . .
# Expose Streamlit port
EXPOSE 8501
# Health check
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]