env: add runtime library to wasmedge runner

The runtime libraries were missed when the image was
originally created, resulting in a binary that failed at
runtime due to a missing library.

For golang/go#60097

Change-Id: I6ae15af905e0dc673bbc300b95662ccd3b65034e
Reviewed-on: https://go-review.googlesource.com/c/build/+/496076
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
diff --git a/env/wasip1-wasm-wasmedge/Dockerfile b/env/wasip1-wasm-wasmedge/Dockerfile
index 13dd386..0e914c4 100644
--- a/env/wasip1-wasm-wasmedge/Dockerfile
+++ b/env/wasip1-wasm-wasmedge/Dockerfile
@@ -17,5 +17,8 @@
 FROM ${REPO}/linux-x86-sid:20221109
 
 COPY --from=builder /root/.wasmedge/bin/wasmedge /usr/local/bin/wasmedge
+COPY --from=builder /root/.wasmedge/lib/* /usr/local/lib
+
+ENV LD_LIBRARY_PATH=/usr/local/lib
 
 CMD ["/usr/local/bin/stage0"]