-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathDockerfile
33 lines (27 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM debian:stable-slim
MAINTAINER SYA-KE <[email protected]>
ENV SQUID_DIR /usr/local/squid
ENV C_ICAP_DIR /usr/local/c-icap
RUN apt-get update && \
apt-get -qq -y install openssl libssl-dev build-essential wget curl net-tools dnsutils tcpdump libcap-dev && \
apt-get clean
# https://www.squid-cache.org/Versions/
ARG squid_version="6.9"
RUN wget http://www.squid-cache.org/Versions/v6/squid-${squid_version}.tar.gz && \
tar xzvf squid-${squid_version}.tar.gz && \
cd squid-${squid_version} && \
./configure --prefix=$SQUID_DIR --with-openssl --enable-ssl-crtd --with-large-files && \
make -j4 && \
make install
# https://c-icap.sourceforge.net/download.html
ARG c_icap_version="0.6.2"
RUN wget https://jaist.dl.sourceforge.net/project/c-icap/c-icap/0.6.x/c_icap-${c_icap_version}.tar.gz && \
tar xzvf c_icap-${c_icap_version}.tar.gz && \
cd c_icap-${c_icap_version} && \
./configure --enable-large-files --enable-lib-compat --prefix=$C_ICAP_DIR && \
make -j4 && \
make install
EXPOSE 3128
ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]