From 98d48c178ca7f2a139c5d8ea7beb4762000985c6 Mon Sep 17 00:00:00 2001 From: fredbcode Date: Thu, 28 Oct 2021 09:46:41 +0200 Subject: [PATCH] Reduce size --- Dockerfile | 4 +--- Dockerfile-arm | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73b970a..514a2a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM debian:bullseye-slim as buildamd - ARG SQUID_VERSION ENV ENV_SQUID_VERSION=$SQUID_VERSION - WORKDIR /tmp RUN echo "deb-src http://deb.debian.org/debian bullseye main contrib" >> /etc/apt/sources.list && apt-get update && apt-get --no-upgrade --no-install-recommends -y build-dep squid && apt-get --no-install-recommends -y install wget tar xz-utils libssl-dev libssl1.1 winbind \ && wget --progress=dot:giga http://www.squid-cache.org/Versions/v5/$SQUID_VERSION \ @@ -57,7 +55,7 @@ RUN echo "deb-src http://deb.debian.org/debian bullseye main contrib" >> /etc/ap --enable-delay-pools \ --with-large-files \ --enable-removal-policies="lru,heap" \ - && make \ + && make # Instal FROM debian:bullseye-slim diff --git a/Dockerfile-arm b/Dockerfile-arm index 07be89a..f4be812 100644 --- a/Dockerfile-arm +++ b/Dockerfile-arm @@ -59,7 +59,7 @@ RUN echo "deb-src http://deb.debian.org/debian bullseye main contrib" >> /etc/ap --enable-removal-policies="lru,heap" \ && make \ # Instal - && cd /tmp/squid && apt-get install --no-install-recommends -y libxml2 ca-certificates \ + && apt-get install --no-install-recommends -y libxml2 ca-certificates \ && adduser --no-create-home --uid 1161 --group --system squid \ && mkdir -p /usr/share/squid \ && mkdir -p /usr/lib/squid \