Skip to content

Commit

Permalink
fix(makefile): fix non-wasm docker image build with ledger tag (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth authored Sep 26, 2023
1 parent 35d1bba commit 63aec8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN apk add --no-cache --update \
ca-certificates \
git \
make \
build-base
build-base \
linux-headers

WORKDIR axelar

Expand All @@ -29,7 +30,8 @@ RUN if [[ "${WASM}" == "true" ]]; then \

COPY . .

RUN make WASM="${WASM}" MUSLC=true build
ENV CGO_ENABLED=0
RUN make WASM="${WASM}" MUSLC="${WASM}" build

FROM alpine:3.18

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ endif

ifeq ($(MUSLC), true)
STATIC_LINK_FLAGS := -linkmode=external -extldflags '-Wl,-z,muldefs -static'
BUILD_TAGS := muslc
BUILD_TAGS := ledger,muslc
else
STATIC_LINK_FLAGS := ""
BUILD_TAGS := ledger
Expand Down

0 comments on commit 63aec8c

Please sign in to comment.