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` ...