Allow localnet for test

This commit is contained in:
Fred 2023-03-07 08:47:53 +00:00
parent c2779852dd
commit eea0b60760

View File

@ -99,7 +99,7 @@ RUN adduser --no-create-home --uid 1161 --group --system squid \
&& echo "cache_log /var/log/squid/cache.log" >> /etc/squid/squid.conf \ && echo "cache_log /var/log/squid/cache.log" >> /etc/squid/squid.conf \
&& echo "cache_effective_user squid" >> /etc/squid/squid.conf \ && echo "cache_effective_user squid" >> /etc/squid/squid.conf \
# Removed in 5.8, needed for test # Removed in 5.8, needed for test
&& echo "http_access allow localnet" >> /etc/squid/squid.conf \ && sed -i '/http_access deny all/ihttp_access allow localnet' /etc/squid/squid.conf \
# Packages dependencies installation for running and clean again # Packages dependencies installation for running and clean again
&& apt-get update && apt-get install -y --no-install-recommends c-icap ca-certificates net-tools rsync libexpat1 libltdl7 libxml2 openssl ca-certificates libldap-2.4-2 libecap3 libcap2 libdb5.3 libatomic1 dumb-init procps inotify-tools curl \ && apt-get update && apt-get install -y --no-install-recommends c-icap ca-certificates net-tools rsync libexpat1 libltdl7 libxml2 openssl ca-certificates libldap-2.4-2 libecap3 libcap2 libdb5.3 libatomic1 dumb-init procps inotify-tools curl \
&& apt-get auto-remove -y && apt-get clean autoclean \ && apt-get auto-remove -y && apt-get clean autoclean \