forked from TrueCloudLab/neoneo-go
parent
eee457ae49
commit
6e5920cc09
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ RUN set -x \
|
||||||
&& export GO111MODULE=on \
|
&& export GO111MODULE=on \
|
||||||
&& export CGO_ENABLED=0 \
|
&& export CGO_ENABLED=0 \
|
||||||
&& export LDFLAGS="-X ${REPO}/pkg/config.Version=${VERSION}" \
|
&& export LDFLAGS="-X ${REPO}/pkg/config.Version=${VERSION}" \
|
||||||
&& go build -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli
|
&& go build -trimpath -v -mod=vendor -ldflags "${LDFLAGS}" -o /go/bin/neo-go ./cli
|
||||||
|
|
||||||
# Executable image
|
# Executable image
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -26,7 +26,7 @@ build: deps
|
||||||
@set -x \
|
@set -x \
|
||||||
&& export GOGC=off \
|
&& export GOGC=off \
|
||||||
&& export CGO_ENABLED=0 \
|
&& export CGO_ENABLED=0 \
|
||||||
&& go build -v -mod=vendor -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go
|
&& go build -trimpath -v -mod=vendor -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go
|
||||||
|
|
||||||
neo-go.service: neo-go.service.template
|
neo-go.service: neo-go.service.template
|
||||||
@sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@
|
@sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@
|
||||||
|
|
Loading…
Reference in a new issue