1
0

Dockerfile 486 B

123456789101112131415161718192021
  1. FROM python:3.9-slim-bullseye
  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-pandas && \
  9. pip install -r requirements.txt
  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"]