Skip to content

Commit

Permalink
CI: Use base ubuntu:latest to run wasmd (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 authored Mar 22, 2024
1 parent 3c6ace8 commit f53b8f2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,24 @@ 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 . .

RUN make build

FROM alpine:3.18
FROM ubuntu:latest

RUN apk add curl jq bash vim
RUN apt-get update -y

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

WORKDIR /app

Expand Down

0 comments on commit f53b8f2

Please sign in to comment.