From c9c5c2dd4b801d119c9877897ea66dbcd2e9db51 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Mon, 29 Apr 2024 16:39:32 +0100 Subject: [PATCH] :bug: Make 'proxy' user the owner of log directories --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index be33459..fb200f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,12 @@ RUN mkdir -p /app/allowlists && \ rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d && \ ln -sf /app/allowlists /etc/squid-deb-proxy/mirror-dstdomain.acl.d +# Set correct file permissions +RUN touch /var/log/squid-deb-proxy/access.log && \ + touch /var/log/squid-deb-proxy/cache.log && \ + touch /var/log/squid-deb-proxy/store.log && \ + chown -R proxy:proxy /var/log/squid-deb-proxy + EXPOSE 8000/tcp ENTRYPOINT ["/app/entrypoint.sh"] \ No newline at end of file