1 # DESCRIPTION: Squid-Cache container
2 # AUTHOR: Ricardson Williams <ricardsonwilliams@gmail.com.br>
4 # Build Squid-Cache based on Amazon Linux 2 LTS (https://aws.amazon.com/amazon-linux-2/)
7 # # Download Dockerfile
8 # wget https://raw.githubusercontent.com/ricardson/dockerfiles/master/squid/Dockerfile
11 # docker build -t squid-cache .
14 # docker run -v /home/user/squid:/var/log/squid -d squid-cache
22 && amazon-linux-extras install squid4 \
25 && rm -rf /usr/share/doc/* \
26 && rm -rf /usr/share/info/* \
27 && rm -rf rm -rf /var/cache/yum/* \
28 && cp /etc/skel/.bashrc /root/
32 CMD ["/usr/sbin/squid", "-N"]