-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 719 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (23 loc) · 719 Bytes
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
FROM alpine:latest
LABEL author="Oleksandr Hulyi <ohulyi@outlook.com>"
ENV \
GIT_SOURCES="https://github.com/uklans/cache-domains" \
UPSTREAM_DNS="1.1.1.1 8.8.8.8 2606:4700:4700::1111 2001:4860:4860::8888" \
EXTERNAL_IPS="" \
TZ="Europe/Paris"
RUN apk update && \
apk add --no-cache git dnsmasq sniproxy nginx supervisor bind && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apk/* && \
rm -rf /etc/sniproxy && \
rm -rf /etc/nginx && \
rm -rf /etc/bind && \
rm -rf /etc/dnsmasq.conf && \
mkdir /var/cache/bind && \
mkdir -p /data/sources && \
mkdir -p /data/logs && \
mkdir -p /data/cache && \
chmod -R 666 /data && \
chown -R nobody:nobody /data
COPY overlay/ /
CMD ["/usr/bin/supervisord"]