Browse Source

updates for netclient docker images

Matthew R. Kasun 3 years ago
parent
commit
06430a6932
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docker/Dockerfile-netclient-multiarch

+ 2 - 1
docker/Dockerfile-netclient-multiarch

@@ -1,12 +1,13 @@
 FROM gravitl/builder:latest as builder
 # add glib support daemon manager
 WORKDIR /app
+ARG version
 
 COPY . .
 
 ENV GO111MODULE=auto
 
-RUN GOOS=linux GOARCH=arm64 CGO_ENABLED=0 /usr/local/go/bin/go build -ldflags="-w -s" -o netclient-app netclient/main.go
+RUN GOOS=linux CGO_ENABLED=0 /usr/local/go/bin/go build -ldflags="-w -s -X 'main.version=${TAG}'" -o netclient-app netclient/main.go
 
 WORKDIR /root/