Skip to content

Commit

Permalink
add .so file
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Mar 22, 2024
1 parent 2e0a736 commit f6fef11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ RUN ARCH=$(uname -m) && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm |
-O /lib/libwasmvm_muslc.a && \
# verify checksum
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \
sha256sum /lib/libwasmvm_muslc.a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$ARCH | cut -d ' ' -f 1)
sha256sum /lib/libwasmvm_muslc.a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$ARCH | cut -d ' ' -f 1) && \
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm.x86_64.so \
-O /lib/libwasmvm.x86_64.so && \
wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm.aarch64.so \
-O /lib/libwasmvm.aarch64.so

# Copy the remaining files
COPY . .
Expand All @@ -46,6 +50,8 @@ FROM ubuntu:latest
RUN apt-get update -y

COPY --from=go-builder /app/build/rollappd /usr/local/bin/
COPY --from=go-builder /lib/libwasmvm.x86_64.so libwasmvm.x86_64.so
COPY --from=go-builder /lib/libwasmvm.aarch64.so libwasmvm.aarch64.so

WORKDIR /app

Expand Down

0 comments on commit f6fef11

Please sign in to comment.