From dc8c9a2a9ab3c0de74df3c1ecac93a6c4032d50b Mon Sep 17 00:00:00 2001 From: Stavros Foteinopoulos Date: Fri, 12 Jan 2024 15:08:59 +0200 Subject: [PATCH] fix build (#27) Signed-off-by: Stavros Foteinopoulos --- Makefile | 2 +- build/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c8f1b09..26bc620 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,7 @@ build: ## Build the elrond echo "Unknown architecture $(ARCH)"; \ exit 1; \ fi; \ - GOOS=linux CGO_ENABLED=0 $(GO) build -ldflags '$(LDFLAGS)' -gcflags all=-trimpath=$(PWD) -asmflags all=-trimpath=$(PWD) -a -installsuffix cgo -o build/_output/bin/elrond ./cmd/$(APP) + GOOS=linux CGO_ENABLED=0 $(GO) build -ldflags '$(LDFLAGS)' -gcflags all=-trimpath=$(PWD) -asmflags all=-trimpath=$(PWD) -a -installsuffix cgo -o ./build/_output/bin/elrond ./cmd/$(APP) .PHONY: build-image build-image: ## Build the docker image for Elrond diff --git a/build/Dockerfile b/build/Dockerfile index 3499191..d35446b 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -35,7 +35,7 @@ ENV ELROND=/elrond/elrond \ USER_NAME=elrond RUN apk update && apk add libc6-compat && apk add ca-certificates -COPY --from=build /elrond/cmd/elrond /elrond/elrond +COPY --from=build /elrond/build/_output/bin/elrond /elrond/elrond COPY --from=build /elrond/build/bin /usr/local/bin RUN /usr/local/bin/user_setup