1
0

Dockerfile 533 B

123456789101112131415161718192021
  1. FROM debian:12.6-slim
  2. LABEL maintainer="Christopher Nethercott" \
  3. description="PiHole to InfluxDB data bridge"
  4. WORKDIR /app
  5. # Install Python packages
  6. COPY requirements.txt .
  7. RUN apt-get update && \
  8. apt-get install -y --no-install-recommends python3 python3-pip python3-pandas && \
  9. python3 -m pip install -r requirements.txt --break-system-packages
  10. # Clean up
  11. RUN apt-get -q -y autoremove && \
  12. apt-get -q -y clean && \
  13. rm -rf /var/lib/apt/lists/*
  14. # Final setup & execution
  15. COPY . /app
  16. CMD ["python3", "-u", "main.py"]