From 22928eb61b25762e5147a576ded192510d080bb8 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 16 Feb 2022 14:38:34 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20modified:=20Dockerfile?= =?UTF-8?q?=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4cab855..e0e64ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ ENV \ SQUID_HOME_DIR=/var/lib/squid \ SQUID_CACHE_DIR=/data/cache/squid \ SQUID_LOG_DIR=/data/log/squid \ - SQUID_USER=squid + SQUID_USER=root RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -yy \ @@ -37,10 +37,12 @@ RUN apt-get update \ libapache2-mod-proxy-uwsgi \ libapache2-mod-fcgid \ libapache2-mod-wsgi \ + net-tools \ && apt-get remove -yy --purge exim* \ - && rm -rf /var/lib/apt/lists/* /etc/apache2/*conf* \ + && rm -rf /var/lib/apt/lists/* /etc/apache2/* \ && mkdir -p /config /data \ - && useradd -d "$SQUID_HOME_DIR" -r -U -m "$SQUID_USER" + && { grep -qs "$SQUID_USER" /etc/passwd || useradd -d "$SQUID_HOME_DIR" -r -U -m "$SQUID_USER"; } \ + && chown -R "$SQUID_USER":"$SQUID_USER" "/config" "/data" ADD ./config/. /etc/ ADD ./bin/. /usr/local/bin/