Skip to content

Commit 3b57e0c

Browse files
authored
fix: docker file for umee price feeder to be used in umee e2e test (#55)
* go.mod edit * update docker file * build flags
1 parent 7badaa2 commit 3b57e0c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,16 @@ WORKDIR /app
1212
COPY go.mod go.sum ./
1313
RUN go mod download
1414

15+
# Cosmwasm - Download correct libwasmvm version
16+
RUN WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | cut -d ' ' -f 2) && \
17+
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$(uname -m).a \
18+
-O /lib/libwasmvm_muslc.a && \
19+
# verify checksum
20+
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \
21+
sha256sum /lib/libwasmvm_muslc.a | grep $(cat /tmp/checksums.txt | grep $(uname -m) | cut -d ' ' -f 1)
22+
1523
COPY . .
16-
RUN make build
24+
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build
1725

1826
# Runner
1927
FROM alpine

0 commit comments

Comments
 (0)