1
0

Dockerfile 601 B

1234567891011121314151617181920212223
  1. # Dockerfile for ingestion service
  2. FROM python:3.11-slim
  3. # Install system dependencies
  4. RUN apt-get update && apt-get install -y --no-install-recommends \
  5. build-essential \
  6. default-libmysqlclient-dev \
  7. snmp \
  8. && rm -rf /var/lib/apt/lists/*
  9. # Set working directory
  10. WORKDIR /app
  11. # Copy requirements (if any) – using existing requirements.txt
  12. COPY requirements.txt ./
  13. RUN pip install --no-cache-dir -r requirements.txt
  14. # Copy ingestion script and any helpers
  15. COPY ingest_csv.py ./
  16. COPY myloginpath.py ./
  17. # Entry point (will be overridden by K8s job)
  18. CMD ["python", "ingest_csv.py"]