You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
360 B
16 lines
360 B
ARG ALPINE_VERSION=latest
|
|
FROM alpine:${ALPINE_VERSION}
|
|
|
|
ARG ARCH=x86_64
|
|
|
|
COPY smartdns-${ARCH} /usr/local/bin/
|
|
RUN mv /usr/local/bin/smartdns-${ARCH} /usr/local/bin/smartdns && \
|
|
chmod +x /usr/local/bin/smartdns
|
|
|
|
COPY smartdns.conf /etc/smartdns/
|
|
|
|
VOLUME ["/smartdns"]
|
|
|
|
EXPOSE 53/udp 53
|
|
|
|
ENTRYPOINT ["smartdns", "-f", "-c", "/etc/smartdns/smartdns.conf"]
|
|
|