From 2da132393f530ef30343b131647b85161dd29400 Mon Sep 17 00:00:00 2001 From: Macleykun Date: Sun, 12 Jun 2022 14:54:57 +0200 Subject: [PATCH] Make the installation of packages as adviced (and apt-get to have a stable interface) --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 80ec0aef..f19834c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,10 @@ FROM debian:buster-slim ARG dir="/home/pi/pialert" -#Update and reduce image size RUN apt-get update \ - && apt-get install --no-install-recommends apt-utils cron sudo lighttpd php php-cgi php-fpm php-sqlite3 sqlite3 dnsutils net-tools python iproute2 -y \ - #Install without the --no-install-recommends flag - && apt-get install curl arp-scan -y \ - #clean-up - && apt clean autoclean \ - && apt autoremove + && apt-get install --no-install-recommends apt-utils cron sudo lighttpd php php-cgi php-fpm php-sqlite3 sqlite3 dnsutils net-tools python iproute2 curl arp-scan -y \ + && apt-get clean autoclean \ + && rm -rf /var/lib/apt/lists/* #add the pi user RUN useradd -ms /bin/bash pi