From 87f8e0eb6721e2cda86b0873288f508f290f524b Mon Sep 17 00:00:00 2001 From: Andrew Sisley Date: Wed, 5 Jun 2024 10:05:43 -0400 Subject: [PATCH] Fixup - container file --- tools/defradb.containerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/defradb.containerfile b/tools/defradb.containerfile index 53a849b6c6..7e07bf887d 100644 --- a/tools/defradb.containerfile +++ b/tools/defradb.containerfile @@ -18,11 +18,16 @@ RUN make deps:modules COPY . . COPY --from=PLAYGROUND_BUILD /repo/dist /repo/playground/dist/ ENV BUILD_TAGS=playground +# manually copy libwasmer.so to fix linking issue https://github.com/wasmerio/wasmer-go/issues/281 +RUN export WASMER_ARCH=$(go env GOHOSTARCH | sed "s/arm64/aarch64/") && \ + export WASMER_PATH=$(go env GOMODCACHE)/github.com/wasmerio/wasmer-go@v1.0.4/wasmer/packaged/lib/linux-$WASMER_ARCH/libwasmer.so && \ + cp $WASMER_PATH /lib/libwasmer.so RUN make build # Stage: RUN FROM debian:bookworm-slim COPY --from=BUILD /repo/build/defradb /defradb +COPY --from=BUILD /lib/libwasmer.so /lib/libwasmer.so # Documents which ports are normally used. # To publish the ports: `docker run -p 9181:9181` ...