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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user