ghost-fleet-logistics / Dockerfile
Navya-Sree's picture
Update Dockerfile
ff27614 verified
raw
history blame contribute delete
809 Bytes
# Use Python 3.10-slim (More stable/compatible than 3.13 for OR-Tools)
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install only the absolute necessities
# REMOVED: software-properties-common (this was causing your error)
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (for caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy ALL your application files (app.py, config.py, agents.py, utils.py)
COPY . .
# Open the port
EXPOSE 8501
# Healthcheck
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
# Run the app
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]