-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
Dockerfile
35 lines (23 loc) · 1022 Bytes
/
Dockerfile
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
FROM golang:1.23.1-alpine AS builder-dnstool
WORKDIR /go/src/
RUN \
echo ">> Downloading required apk's..." && \
apk --no-cache add git
RUN \
echo ">> Clone dnstool repo..." && \
git clone https://github.com/lancachenet/dnstool.git .
RUN \
echo ">> Starting go build..." && \
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w"
FROM lancachenet/ubuntu:latest
MAINTAINER LanCache.Net Team <[email protected]>
ENV STEAMCACHE_DNS_VERSION=1 ENABLE_DNSSEC_VALIDATION=false LANCACHE_DNSDOMAIN=cache.lancache.net CACHE_DOMAINS_REPO=https://github.com/uklans/cache-domains.git CACHE_DOMAINS_BRANCH=master UPSTREAM_DNS=8.8.8.8
RUN apt-get update && apt-get install -y bind9 curl dnsutils git
COPY overlay/ /
COPY --from=builder-dnstool /go/src/dnstool /usr/local/bin/dnstool
RUN mkdir -p /var/cache/bind /var/log/named \
&& chown bind:bind /var/cache/bind /var/log/named
RUN git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domains/ /opt/cache-domains
EXPOSE 53/udp
EXPOSE 53/tcp
WORKDIR /scripts