Skip to content

Commit

Permalink
get wasmvm library from github during build
Browse files Browse the repository at this point in the history
  • Loading branch information
BiPhan4 committed Dec 11, 2024
1 parent 3664975 commit 87fa476
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,21 @@ ENV MULBERRY_HOME /root/.mulberry
# Install dependencies
RUN apt-get update && apt-get install -y \
ca-certificates \
wget \
&& rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /root/

# Copy the shared library into the container
COPY lib/libwasmvm.aarch64.so /usr/local/lib/
# Download the libwasmvm.aarch64.so file directly from GitHub
WORKDIR /tmp
RUN wget https://github.com/CosmWasm/wasmvm/releases/download/v2.1.4/libwasmvm.aarch64.so \
-O /usr/local/lib/libwasmvm.aarch64.so && \
chmod 755 /usr/local/lib/libwasmvm.aarch64.so

# Update the linker cache
RUN ldconfig

# Set the working directory
WORKDIR /root/

# Copy the binary and configuration files from the builder
COPY --from=builder /go/bin/mulberry /usr/local/bin/mulberry
COPY --from=builder /app/config /root/.mulberry
Expand Down
Binary file removed lib/libwasmvm.aarch64.so
Binary file not shown.

0 comments on commit 87fa476

Please sign in to comment.