mirror of
https://github.com/gravitl/netmaker.git
synced 2025-12-17 08:08:45 +08:00
updates for netclient docker images
This commit is contained in:
parent
61193f4a9d
commit
aa5ac68ac1
1 changed files with 2 additions and 1 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
FROM gravitl/builder:latest as builder
|
FROM gravitl/builder:latest as builder
|
||||||
# add glib support daemon manager
|
# add glib support daemon manager
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
ARG version
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ENV GO111MODULE=auto
|
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/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue