1
1
FROM debian:bullseye-slim
2
2
3
- LABEL org.opencontainers.image.title="Unit (wasm)"
4
- LABEL org.opencontainers.image.description="Official build of Unit for Docker."
3
+ LABEL org.opencontainers.image.title="Unit Preview (wasm-wasi-component )"
4
+ LABEL org.opencontainers.image.description="Official preview build of Unit for Docker."
5
5
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6
6
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7
7
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
@@ -15,7 +15,7 @@ RUN set -ex \
15
15
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
16
16
&& mkdir -p /usr/src/unit \
17
17
&& cd /usr/src/unit \
18
- && git clone https://github.com/alexcrichton /unit --branch wasmtime \
18
+ && git clone https://github.com/ac000 /unit --branch wasm-cm \
19
19
&& cd unit \
20
20
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
21
21
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -66,9 +66,9 @@ RUN set -ex \
66
66
&& rustc --version \
67
67
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules \
68
68
&& make build/src/nxt_unit.o \
69
- && cargo build --release --manifest-path wasmtime /Cargo.toml \
70
- && install -pm755 wasmtime/ target/release/libnxt_wasmtime.so /usr/lib/unit/modules/wasmtime .unit.so \
71
- && rm -rf wasmtime /target \
69
+ && cargo build --release --manifest-path src/wasm-wasi-component /Cargo.toml \
70
+ && install -pm755 src/wasm-wasi-component/ target/release/libnxt_wasmtime.so /usr/lib/unit/modules/wasm_wasi_component .unit.so \
71
+ && rm -rf src/wasm-wasi-component /target \
72
72
&& rm -rf /usr/src/unit \
73
73
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
74
74
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
0 commit comments