Browse Source

adding changes

afeiszli 4 years ago
parent
commit
6108936b0b
3 changed files with 2 additions and 10 deletions
  1. 2 2
      Dockerfile
  2. 0 8
      config/dnsconfig/Corefile
  3. 0 0
      config/dnsconfig/netmaker.hosts

+ 2 - 2
Dockerfile

@@ -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
 
 ENV GO111MODULE=auto
 
-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
 

+ 0 - 8
config/dnsconfig/Corefile

@@ -1,8 +0,0 @@
-example.com {
-    reload 15s
-    hosts /root/dnsconfig/netmaker.hosts {
-	fallthrough	
-    }
-    forward . 8.8.8.8 8.8.4.4
-    log
-}

+ 0 - 0
config/dnsconfig/netmaker.hosts