@@ -8,13 +8,13 @@ WORKDIR /app
ENV GO111MODULE=auto
-RUN CGO_ENABLED=0 GOOS=linux go build -o app main.go
+RUN GOARCH=amd64 CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o app main.go
WORKDIR /app/netclient
-RUN CGO_ENABLED=0 GOOS=linux go build -o netclient main.go
+RUN GOARCH=amd64 CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o netclient main.go
#second stage
@@ -1,8 +0,0 @@
-example.com {
- reload 15s
- hosts /root/dnsconfig/netmaker.hosts {
- fallthrough
- }
- forward . 8.8.8.8 8.8.4.4
- log
-}