36 lines
967 B
Docker
Executable File
36 lines
967 B
Docker
Executable File
#FROM ubuntu:bionic-20180526
|
|
FROM centos:7.5.1804
|
|
LABEL maintainer="breel@blapointe.com"
|
|
|
|
ENV \
|
|
SQUID_CACHE_DIR=/var/spool/squid \
|
|
SQUID_LOG_DIR=/var/log/squid \
|
|
SQUID_USER=proxy
|
|
|
|
#RUN rpm -i http://ngtech.co.il/repo/centos/7/squid-repo-1-1.el7.centos.noarch.rpm
|
|
#RUN yum install squid
|
|
#RUN apt-get update \
|
|
# && DEBIAN_FRONTEND=noninteractive apt-get install -y squid=${SQUID_VERSION}* apache2-utils \
|
|
# && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN yum install -y gcc
|
|
RUN yum install -y gcc-c++
|
|
RUN yum install -y perl gcc autoconf automake make sudo wget
|
|
RUN yum install -y libxml2-devel libcap-devel
|
|
RUN yum install -y libtool-ltdl-devel
|
|
|
|
RUN curl http://www.squid-cache.org/Versions/v4/squid-4.3.tar.gz > /squid-4.3.tar.gz
|
|
|
|
COPY compile-squid.sh /compile-squid.sh
|
|
|
|
RUN bash /compile-squid.sh
|
|
|
|
RUN mkdir -p /etc/squid3
|
|
|
|
COPY entrypoint.sh /sbin/entrypoint.sh
|
|
RUN chmod 755 /sbin/entrypoint.sh
|
|
|
|
EXPOSE 3128/tcp
|
|
EXPOSE 3228/tcp
|
|
ENTRYPOINT ["/sbin/entrypoint.sh"]
|