Skip to content

Commit

Permalink
fix: Multiplatform support for docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
pbukva committed Jul 25, 2023
1 parent 8b2ef96 commit 631d586
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 @@ -12,6 +12,8 @@ COPY . .

RUN make install

RUN ARCH=`uname -m` && ln -s /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/api/libwasmvm.${ARCH}.so /usr/lib/libwasmvm.${ARCH}.so

# ##################################

FROM debian:buster as hub
Expand All @@ -22,7 +24,7 @@ ENV PACKAGES jq curl
RUN apt-get update && \
apt-get install -y $PACKAGES

COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/api/libwasmvm.x86_64.so /usr/lib/
COPY --from=builder /usr/lib/libwasmvm.*.so /usr/lib/
COPY --from=builder /go/bin/fetchd /usr/bin/fetchd
COPY entrypoints/entrypoint.sh /usr/bin/entrypoint.sh

Expand Down Expand Up @@ -64,3 +66,4 @@ ENV PYTHONUNBUFFERED=1

ENTRYPOINT [ "/usr/bin/run-localnet-setup.py" ]
CMD []

0 comments on commit 631d586

Please sign in to comment.