From 3e3bbd973f16a00ac3b04c4acc6202f4a74ce968 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sat, 8 Nov 2025 10:58:48 -0600 Subject: [PATCH] Update Dockerfile to use the new Make-based build I'm going to run into consistency problems at some point, so I'm going to get ahead of that by updating the container build process. --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12dc7a5f..54329ad7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,15 +5,9 @@ RUN apt-get install -y --no-install-recommends libasound2-dev libudev-dev RUN rustup target add wasm32-unknown-unknown RUN cargo install --locked wasm-bindgen-cli -# Copy only the package manifest and source code. Otherwise changes to anything -# will cause Docker to re-run `cargo build` even when the source hasn't changed. -COPY src/ ./src -COPY Cargo.toml ./Cargo.toml -COPY Cargo.lock ./Cargo.lock +COPY . . -RUN cargo build --locked --target wasm32-unknown-unknown --profile=wasm-release -RUN wasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name "boids" target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm -COPY www/index.html out/index.html +RUN make -j FROM busybox:musl RUN mkdir -p /var/www