Skip to content

Commit

Permalink
fix build (#27)
Browse files Browse the repository at this point in the history
Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
  • Loading branch information
stafot authored Jan 12, 2024
1 parent cb6c6c6 commit dc8c9a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc8c9a2

Please sign in to comment.