34 lines
919 B
Plaintext
Executable File
34 lines
919 B
Plaintext
Executable File
FROM base/archlinux:latest
|
|
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 pacman -Sy --noconfirm squid
|
|
#RUN pacman -Sy --noconfirm htpasswd
|
|
RUN useradd $SQUID_USER
|
|
|
|
RUN mkdir -p /var/cache/squid
|
|
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"]
|