1
0

Dockerfile 687 B

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