| 1234567891011121314151617181920 |
- FROM python:3.11-slim
- WORKDIR /app
- # Install curl for health checks
- RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
- # Copy and install dependencies
- COPY requirements.txt .
- RUN pip install --no-cache-dir -r requirements.txt
- # Copy application code
- COPY app.py .
- COPY index.html .
- # Expose port
- EXPOSE 8001
- # Start command
- CMD ["python", "app.py"]
|