#Download base image ubuntu FROM ubuntu:22.04 #FROM ubuntu:16.04 #FROM ubuntu:18.04 LABEL version="1.1" LABEL maintainer="info@tmade.de" ENV SQUID_VERSION="6.4" ENV MAIN_VERSION="6" ENV SQUIDURL="http://www.squid-cache.org/Versions/v${MAIN_VERSION}/squid-${SQUID_VERSION}.tar.gz" #http://www.squid-cache.org/Versions/v5/squid-5.1.tar.gz #http://www.squid-cache.org/Versions/v4/squid-4.10.tar.gz # locales to UTF-8 #RUN locale-gen C.UTF-8 && /usr/sbin/update-locale LANG=C.UTF-8 #ENV LC_ALL C.UTF-8 #ENV SQUID_VERSION=3.5.12-1ubuntu7 RUN apt-get update && \ apt-get -y upgrade && \ apt-get -y install bash-completion \ build-essential \ libssl-dev \ wget \ curl \ netcat \ vim \ iputils-ping \ net-tools && \ apt-get -qy autoremove && \ rm -rf /var/lib/apt/lists/* RUN wget ${SQUIDURL} RUN tar -xzf squid-${SQUID_VERSION}.tar.gz RUN cd /squid-${SQUID_VERSION} && ./configure --with-large-files \ --disable-ipv6 --enable-follow-x-forwarded-for \ --sysconfdir=/etc/squid --localstatedir=/var/log/squid \ --enable-ssl --with-openssl --with-filedescriptors=16384 \ --enable-storeio=diskd,ufs --prefix=/usr/local/squid \ --with-included-ltdl RUN cd /squid-${SQUID_VERSION} && make && make install RUN useradd -r squid -s /bin/false && \ cat /etc/passwd && \ #RUN groupadd -r squid touch /var/log/squid/logs/access.log && \ cd /var/log/squid/ && chmod -R 770 * && chown -R squid:squid * && \ chmod 660 /var/log/squid/logs/access.log COPY squid-no-cache.conf /etc/squid/squid.conf #COPY entrypoint.sh /usr/bin/entrypoint.sh WORKDIR /etc/squid USER squid #ENTRYPOINT "/sbin/entrypoint.sh && /bin/bash" #EXPOSE 8080/tcp #ENTRYPOINT ["/sbin/entrypoint.sh"]