Build using the locked dependency versions

I want to at least have the smell of reproducible builds, so I'll make
the image build using the lockfile. Otherwise the build-time dependency
information gets lost.
This commit is contained in:
2025-09-04 09:26:37 -05:00
parent 0ad31b30df
commit 6b7692cf78

View File

@@ -9,8 +9,9 @@ RUN cargo install --locked wasm-bindgen-cli
# 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
RUN cargo build --target wasm32-unknown-unknown --profile=wasm-release
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