| 1234567891011121314151617181920212223242526272829303132333435 | ARG WASMTIME_VERSION=15.0.0ARG WASM_TARGET=wasm32-wasip1-threadsFROM rust:1.77 AS compileARG WASMTIME_VERSIONARG WASM_TARGETWORKDIR /tmpCOPY / ./RUN curl -LSs "https://github.com/bytecodealliance/wasmtime/releases/download/v${WASMTIME_VERSION}/wasmtime-v${WASMTIME_VERSION}-$(uname -m)-linux.tar.xz" | \tar --strip-components=1 -Jx && \rustup default nightly && \rustup target add ${WASM_TARGET} && \cargo build --bin xitca-web-wasm --features web --release --target ${WASM_TARGET}FROM ubuntu:22.04ARG WASM_TARGETARG BENCHMARK_ENVARG TFB_TEST_DATABASEARG TFB_TEST_NAMECOPY --from=compile \/tmp/target/${WASM_TARGET}/release/xitca-web-wasm.wasm \/tmp/wasmtime \/opt/xitca-web-wasm/EXPOSE 8080CMD /opt/xitca-web-wasm/wasmtime run \--wasm all-proposals=y \--wasi threads=y,tcplisten=0.0.0.0:8080 \--env FD_COUNT=3 \/opt/xitca-web-wasm/xitca-web-wasm.wasm
 |