-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile-debug
More file actions
31 lines (24 loc) · 855 Bytes
/
Dockerfile-debug
File metadata and controls
31 lines (24 loc) · 855 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
28
29
30
31
FROM alpine:latest AS release
ENV DNS_SERVERS="1.1.1.1,1.0.0.1"
ENV RESOLVER_URL="https://cloudflare-dns.com/dns-query"
USER root
COPY docker-entrypoint.sh /
RUN apk add --no-cache \
gdb musl-dbg curl-dbg openssl-dbg \
# temporal build dependencies
c-ares-dev curl-dev libev-dev openssl-dev \
git build-base cmake && \
git clone https://github.com/aarond10/https_dns_proxy.git && \
cd /https_dns_proxy && \
cmake -D CMAKE_BUILD_TYPE=Debug . && \
make && \
mv https_dns_proxy /bin/https_dns_proxy_debug && \
cd / && \
rm -rf /https_dns_proxy && \
sed -i 's/https_dns_proxy/https_dns_proxy_debug/' /docker-entrypoint.sh && \
apk del \
c-ares-dev curl-dev libev-dev openssl-dev \
git build-base cmake
USER root
EXPOSE 5053
ENTRYPOINT ["/sbin/tini", "--", "/docker-entrypoint.sh"]