|
@@ -1,4 +1,4 @@
|
|
-FROM debian:bookworm-slim
|
|
|
|
|
|
+FROM alpine:3.18.4
|
|
|
|
|
|
LABEL maintainer="Christopher Nethercott" \
|
|
LABEL maintainer="Christopher Nethercott" \
|
|
description="PiHole to InfluxDB data bridge"
|
|
description="PiHole to InfluxDB data bridge"
|
|
@@ -7,14 +7,11 @@ WORKDIR /app
|
|
|
|
|
|
# Install Python packages
|
|
# Install Python packages
|
|
COPY requirements.txt .
|
|
COPY requirements.txt .
|
|
-RUN apt-get update && \
|
|
|
|
- apt-get install -y --no-install-recommends python3 python3-pip python3-pandas && \
|
|
|
|
- python3 -m pip install -r requirements.txt
|
|
|
|
|
|
+RUN apk add --update --no-cache python3 py3-pip py3-pandas && \
|
|
|
|
+ python3 -m pip install -r requirements.txt
|
|
|
|
|
|
-# Clean up
|
|
|
|
-RUN apt-get -q -y autoremove && \
|
|
|
|
- apt-get -q -y clean && \
|
|
|
|
- rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
+# Cleanup
|
|
|
|
+RUN rm -rf /var/cache/apk/*
|
|
|
|
|
|
# Final setup & execution
|
|
# Final setup & execution
|
|
COPY . /app
|
|
COPY . /app
|