mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-04 12:14:19 +08:00
update Dockerfile to use main.version
This commit is contained in:
parent
06430a6932
commit
afb27619d4
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ COPY . .
|
|||
ENV GO111MODULE=auto
|
||||
|
||||
# RUN GOOS=linux CGO_ENABLED=1 go build -tags debug -ldflags="-s -X 'main.version=$version'" -o netmaker main.go
|
||||
RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -X 'github.com/gravitl/netmaker/servercfg/serverconf.Version=$VERSION'" -o netmaker main.go
|
||||
RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -X 'main.version=$VERSION'" -o netmaker main.go
|
||||
FROM alpine:3.14.3
|
||||
|
||||
# add a c lib
|
||||
|
|
Loading…
Add table
Reference in a new issue