Skip to content

Commit

Permalink
update dockerfile to remove hardcoded wasmvm version
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustubhkapatral committed Jun 19, 2024
1 parent 2c688a2 commit 4310275
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ FROM golang:1.20.5-alpine AS build-env
# Set up dependencies
ENV PACKAGES bash curl make git libc-dev gcc linux-headers eudev-dev python3


# ADD . /code
WORKDIR /code

COPY . .

ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
RUN WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | sed 's/.* //') && \
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.x86_64.a \
-O /lib/libwasmvm_muslc.a

RUN apk add --no-cache $PACKAGES && \
BUILD_TAGS=muslc LINK_STATICALLY=true make install && \
Expand Down

0 comments on commit 4310275

Please sign in to comment.