From b7b72976f871ee7b2d4f872ed058c8aedd2fd6c8 Mon Sep 17 00:00:00 2001 From: Paul Butler Date: Fri, 2 Aug 2024 14:01:46 -0400 Subject: [PATCH] fix --- Dockerfile | 4 ++-- stateroom-wasm-host/src/wasm_host_factory.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09080a7..b67d507 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM rust:latest as build +FROM rust:1.80-slim as build WORKDIR /work COPY . . RUN cargo build -p stateroom-cli --release -FROM gcr.io/distroless/cc-debian11 +FROM debian:bookworm-slim COPY --from=build /work/target/release/stateroom /stateroom ENTRYPOINT [ "/stateroom" ] diff --git a/stateroom-wasm-host/src/wasm_host_factory.rs b/stateroom-wasm-host/src/wasm_host_factory.rs index c0a3ebe..a0b824d 100644 --- a/stateroom-wasm-host/src/wasm_host_factory.rs +++ b/stateroom-wasm-host/src/wasm_host_factory.rs @@ -36,6 +36,7 @@ impl WasmHostFactory { let engine = Engine::default(); tracing::info!(wasm_file=?wasm_file.as_ref(), "Loading WebAssembly module"); let module = Module::from_file(&engine, wasm_file)?; + tracing::info!("WebAssembly module loaded"); Ok(WasmHostFactory { engine: Arc::new(engine),