1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/dnscrypt/proxy/Dockerfile

27 lines
789 B
Docker
Raw Normal View History

2015-03-02 05:51:23 +02:00
#
2015-05-30 15:21:24 +02:00
# Dockerfile for dnscrypt-proxy
2015-03-02 05:51:23 +02:00
#
2022-02-17 10:09:23 +02:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2015-03-02 05:26:21 +02:00
2023-04-07 17:27:20 +02:00
ARG DNSCRYPT_PROXY_VERSION=2.1.4
ARG DNSCRYPT_PROXY_ARCH=x86_64
ARG DNSCRYPT_PROXY_FILE=dnscrypt-proxy-linux_${DNSCRYPT_PROXY_ARCH}-${DNSCRYPT_PROXY_VERSION}.tar.gz
2022-02-17 10:09:23 +02:00
ARG DNSCRYPT_PROXY_URL=https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/${DNSCRYPT_PROXY_VERSION}/${DNSCRYPT_PROXY_FILE}
WORKDIR /etc/dnscrypt-proxy
2015-06-12 12:02:11 +02:00
2016-02-25 03:49:26 +02:00
RUN set -xe \
2022-02-17 10:09:23 +02:00
&& apk add --no-cache curl tar \
&& curl -sSL ${DNSCRYPT_PROXY_URL} | tar xz --strip 1 \
&& mv dnscrypt-proxy /usr/local/bin/ \
&& sed '/^listen_addresses/s/127.0.0.1:53/0.0.0.0:53/' example-dnscrypt-proxy.toml > dnscrypt-proxy.toml
VOLUME /etc/dnscrypt-proxy
2015-05-30 15:21:24 +02:00
EXPOSE 53/tcp 53/udp
2022-02-17 10:09:23 +02:00
ENTRYPOINT ["dnscrypt-proxy"]
CMD ["-config", "dnscrypt-proxy.toml"]