-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile.aarch64
51 lines (39 loc) · 1.33 KB
/
Dockerfile.aarch64
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
48
49
50
51
FROM --platform=linux/arm64/v8 debian:sid-slim
COPY aarch64/* /usr/bin/
RUN [ "cross-build-start" ]
RUN ln -sf /bin/bash /bin/sh.real
RUN DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
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 && \
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 && \
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
RUN [ "cross-build-end" ]
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"]