-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.x86
47 lines (36 loc) · 1.26 KB
/
Dockerfile.x86
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM i386/debian:sid-slim
RUN ln -sf /bin/bash /bin/sh
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
nice -n19 apt-get install -y locales && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
apt-get clean && apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
nice -n19 apt-get dist-upgrade -y && \
apt-get clean && apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
ENV LANG en_US.utf8
ENV PATH="${PATH}:/xbin"
ENV TZ Europe/London
ENV PROXY_UID 13
ENV PROXY_GID 13
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
nice -n19 apt-get install -y tzdata busybox openssl squid && \
mkdir /xbin && /bin/busybox --install -s /xbin && \
apt-get clean && apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
RUN mv /etc/squid /etc/squid.dist && \
sed -i 's/^#http_access allow localnet/http_access allow localnet/g' /etc/squid.dist/conf.d/debian.conf && \
mkdir /etc/squid
COPY ssl-selfsigned.conf /etc/squid.dist/ssl-selfsigned.conf
COPY ssl.conf /etc/squid.dist/conf.d/ssl.conf
COPY start-squid.sh /bin/start-squid.sh
VOLUME /etc/squid
VOLUME /var/log/squid
VOLUME /var/spool/squid
EXPOSE 3128/tcp
EXPOSE 3129/tcp
ENTRYPOINT ["/bin/start-squid.sh"]