Prechádzať zdrojové kódy

Revert "change docker base image to python3-alpine"

This reverts commit 3a1a933dc698f2ed239a4d986cdb89c60bc83f4d.
subDesTagesMitExtraKaese 1 rok pred
rodič
commit
3f9a31c6b1
2 zmenil súbory, kde vykonal 10 pridanie a 7 odobranie
  1. 8 5
      Dockerfile
  2. 2 2
      requirements.txt

+ 8 - 5
Dockerfile

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

+ 2 - 2
requirements.txt

@@ -1,2 +1,2 @@
-influxdb-client==1.38.0
-requests==2.31.0
+influxdb-client=1.38.0
+requests=2.31.0