docker – Blame information for rev 29
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
29 | office | 1 | FROM debian:bookworm-slim |
2 | |||
3 | # add filesystem requirements |
||
4 | ADD rootfs / |
||
5 | |||
6 | # update package manager |
||
7 | RUN apt-get update -y && \ |
||
8 | apt-get upgrade -y && \ |
||
9 | apt-get dist-upgrade -y && \ |
||
10 | apt-get -y autoremove && \ |
||
11 | apt-get clean |
||
12 | |||
13 | # install preliminary packages |
||
14 | RUN apt-get install -y \ |
||
15 | coreutils \ |
||
16 | bash \ |
||
17 | curl \ |
||
18 | ca-certificates \ |
||
19 | build-essential \ |
||
20 | distcc \ |
||
21 | autoconf \ |
||
22 | automake \ |
||
23 | libtool \ |
||
24 | libpcre3 \ |
||
25 | libpcre3-dev \ |
||
26 | zlib1g-dev \ |
||
27 | openssl \ |
||
28 | libssl-dev \ |
||
29 | libbrotli-dev |
||
30 | |||
31 | # create privoxy user |
||
32 | RUN groupadd -g 1000 privoxy && \ |
||
33 | useradd -s /bin/bash -g privoxy -G privoxy -u 1000 privoxy |
||
34 | |||
35 | # compile dante |
||
36 | WORKDIR /tmp |
||
37 | RUN mkdir -p /tmp/build && \ |
||
38 | curl -o /tmp/build/privoxy.tar.gz "https://www.privoxy.org/sf-download-mirror/Sources/3.0.34%20%28stable%29/privoxy-3.0.34-stable-src.tar.gz" && \ |
||
39 | cd /tmp/build && \ |
||
40 | tar --strip=1 -xf privoxy.tar.gz && \ |
||
41 | export DISTCC_HOSTS="docker1.internal:35001 docker2.internal:35002 docker3.internal:35003" CC="distcc" CXX="distcc g++" && \ |
||
42 | autoreconf && \ |
||
43 | ./configure \ |
||
44 | --with-user=privoxy \ |
||
45 | --with-group=privoxy \ |
||
46 | --with-openssl \ |
||
47 | --with-brotli \ |
||
48 | --enable-pcre-host-patterns \ |
||
49 | --enable-external-filters \ |
||
50 | --enable-accept-filter \ |
||
51 | --enable-compression \ |
||
52 | --enable-large-file-support && \ |
||
53 | make -j4 && \ |
||
54 | make -j4 install && \ |
||
55 | cp config /etc/privoxy.config && \ |
||
56 | rm -rf /tmp/build |
||
57 | |||
58 | # remove packages that will not be used |
||
59 | WORKDIR / |
||
60 | RUN apt-get purge -y \ |
||
61 | curl \ |
||
62 | git \ |
||
63 | build-essential \ |
||
64 | autoconf \ |
||
65 | automake \ |
||
66 | libtool \ |
||
67 | distcc \ |
||
68 | curl \ |
||
69 | pkgconf && \ |
||
70 | apt-get autoremove -y |
||
71 | |||
72 | EXPOSE 8118 |
||
73 | |||
74 | # add remaining files |
||
75 | ADD rootfs / |
||
76 | |||
77 | ENTRYPOINT [ "/bin/bash", "/usr/local/bin/run" ] |