Skip to content

Docker build error: ERROR: failed to build: failed to solve: process "/bin/sh -c wasm-pack build rustpad-wasm" did not complete successfully: exit code: 1 #117

Description

@huornlmj

Getting the following docker build failure with main branch.

$ git rev-parse HEAD
54e4a9383c84d7317af42a7ddb177ce8bcba058d
$ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
$ docker build -t rustpad .
[+] Building 248.4s (19/27)                                                                                                                                           docker:default
 => [internal] load build definition from Dockerfile                                                                                                                            0.0s
 => => transferring dockerfile: 855B                                                                                                                                            0.0s
 => WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "amd64" (line 8)                                                                  0.0s
 => WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "amd64" (line 15)                                                                 0.0s
 => [internal] load metadata for docker.io/library/node:lts-alpine                                                                                                              1.4s
 => [internal] load metadata for docker.io/library/rust:alpine                                                                                                                  1.4s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                                                     0.0s
 => [auth] library/rust:pull token for registry-1.docker.io                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                                               0.0s
 => => transferring context: 127B                                                                                                                                               0.0s
 => [internal] load build context                                                                                                                                               0.0s
 => => transferring context: 268.52kB                                                                                                                                           0.0s
 => [backend 1/6] FROM docker.io/library/rust:alpine@sha256:a10e64dd139b7387337c7fbe8aca31b959b57b2fd4c8ae20a02cf1d6ea424dce                                                    8.4s
 => => resolve docker.io/library/rust:alpine@sha256:a10e64dd139b7387337c7fbe8aca31b959b57b2fd4c8ae20a02cf1d6ea424dce                                                            0.0s
 => => sha256:a10e64dd139b7387337c7fbe8aca31b959b57b2fd4c8ae20a02cf1d6ea424dce 3.90kB / 3.90kB                                                                                  0.0s
 => => sha256:3ffeca71d0e4fc30f5537f76b7243e87ac99726b6d3d66591dfc5e497078b9fc 1.54kB / 1.54kB                                                                                  0.0s
 => => sha256:2a9aef5afb605f3f27c71a834973af743221df0c89b4ccbf94d342a46ce49bfd 2.92kB / 2.92kB                                                                                  0.0s
 => => sha256:55afa1ecc21d2bb5e5045f32dafee56272ffd89860bac26f6c32123439af26a4 3.85MB / 3.85MB                                                                                  0.2s
 => => extracting sha256:55afa1ecc21d2bb5e5045f32dafee56272ffd89860bac26f6c32123439af26a4                                                                                       0.1s
 => => sha256:cd774d63073d8bcda6e4cca9de9864ddec684b1b6f6fb9ae80094ae2746f78da 75.08MB / 75.08MB                                                                                1.2s
 => => sha256:55df97cdb188687df287e6eb59e790ab8f53ee1b3490552605867e33af729536 270.19MB / 270.19MB                                                                              2.1s
 => => extracting sha256:cd774d63073d8bcda6e4cca9de9864ddec684b1b6f6fb9ae80094ae2746f78da                                                                                       1.9s
 => => extracting sha256:55df97cdb188687df287e6eb59e790ab8f53ee1b3490552605867e33af729536                                                                                       5.1s
 => [frontend 1/8] FROM docker.io/library/node:lts-alpine@sha256:e67514e5d0f6c46656005e1b693b2ec9d52e80b641307de684d4a015ba7a4eaf                                               2.7s
 => => resolve docker.io/library/node:lts-alpine@sha256:e67514e5d0f6c46656005e1b693b2ec9d52e80b641307de684d4a015ba7a4eaf                                                        0.0s
 => => sha256:a0f82f71477fc2e453be843cff60ca54b0f44a67df7a3f01fddf121b807826be 53.38MB / 53.38MB                                                                                0.6s
 => => sha256:b38a07ecd3ea0a536a5bb94db11493f70753da22ae004e3fff49cb5d6add507f 1.26MB / 1.26MB                                                                                  0.4s
 => => sha256:e67514e5d0f6c46656005e1b693b2ec9d52e80b641307de684d4a015ba7a4eaf 3.87kB / 3.87kB                                                                                  0.0s
 => => sha256:4caaaf42195bcd6f6f3559a413b20cb8f8ad089e231ee874cf7701643966689f 1.72kB / 1.72kB                                                                                  0.0s
 => => sha256:ee289c69ed1ac50a5a042112ea97f132800e2dd53e832da27784f00e45b3289c 6.49kB / 6.49kB                                                                                  0.0s
 => => sha256:55afa1ecc21d2bb5e5045f32dafee56272ffd89860bac26f6c32123439af26a4 3.85MB / 3.85MB                                                                                  0.2s
 => => extracting sha256:55afa1ecc21d2bb5e5045f32dafee56272ffd89860bac26f6c32123439af26a4                                                                                     246.7s
 => => sha256:502142e2f20261fd2b9cce9a5883e63c4f830a1f4f3dbf643d6f6dd4e56c16a9 448B / 448B                                                                                      0.4s
 => => extracting sha256:a0f82f71477fc2e453be843cff60ca54b0f44a67df7a3f01fddf121b807826be                                                                                       1.9s
 => => extracting sha256:b38a07ecd3ea0a536a5bb94db11493f70753da22ae004e3fff49cb5d6add507f                                                                                       0.0s
 => => extracting sha256:502142e2f20261fd2b9cce9a5883e63c4f830a1f4f3dbf643d6f6dd4e56c16a9                                                                                       0.0s
 => [frontend 2/8] WORKDIR /usr/src/app                                                                                                                                         0.5s
 => [frontend 3/8] COPY package.json package-lock.json ./                                                                                                                       0.0s
 => [backend 2/6] WORKDIR /home/rust/src                                                                                                                                        1.1s
 => [wasm 3/6] RUN apk --no-cache add curl musl-dev                                                                                                                             1.0s
 => [backend 3/6] RUN apk --no-cache add musl-dev openssl-dev                                                                                                                   0.8s
 => [backend 4/6] COPY . .                                                                                                                                                      0.0s
 => CANCELED [backend 5/6] RUN cargo test --release                                                                                                                           236.7s
 => [wasm 4/6] RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh                                                                                        1.5s
 => [wasm 5/6] COPY . .                                                                                                                                                         0.0s
 => ERROR [wasm 6/6] RUN wasm-pack build rustpad-wasm                                                                                                                         234.6s
------
 > [wasm 6/6] RUN wasm-pack build rustpad-wasm:
3.716 [INFO]: Checking for the Wasm target...
3.884 info: downloading component rust-std
6.859 [INFO]: Compiling to Wasm...
7.031    Compiling proc-macro2 v1.0.86
7.031    Compiling unicode-ident v1.0.12
7.032    Compiling wasm-bindgen-shared v0.2.92
7.032    Compiling bumpalo v3.16.0
7.200    Compiling once_cell v1.19.0
7.299    Compiling log v0.4.22
7.535    Compiling wasm-bindgen v0.2.92
7.604    Compiling serde v1.0.204
7.752    Compiling cfg-if v1.0.0
7.797    Compiling serde_json v1.0.120
7.830    Compiling itoa v1.0.11
8.004    Compiling ryu v1.0.18
8.043    Compiling bytecount v0.6.8
8.383    Compiling quote v1.0.36
8.633    Compiling syn v2.0.71
11.28    Compiling wasm-bindgen-backend v0.2.92
12.86    Compiling serde_derive v1.0.204
12.88    Compiling wasm-bindgen-macro-support v0.2.92
14.20    Compiling wasm-bindgen-macro v0.2.92
15.88    Compiling js-sys v0.3.69
16.06    Compiling console_error_panic_hook v0.1.7
20.61    Compiling operational-transform v0.6.1
23.43    Compiling rustpad-wasm v0.1.0 (/home/rust/src/rustpad-wasm)
23.53 warning: `#[inline]` is ignored on externally exported functions
23.53    --> rustpad-wasm/src/lib.rs:118:5
23.53     |
23.53 118 |     #[inline]
23.53     |     ^^^^^^^^^
23.53     |
23.53     = help: externally exported functions are functions with `#[no_mangle]`, `#[export_name]`, or `#[linkage]`
23.53     = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default
23.53
23.53 warning: `#[inline]` is ignored on externally exported functions
23.53    --> rustpad-wasm/src/lib.rs:124:5
23.53     |
23.53 124 |     #[inline]
23.53     |     ^^^^^^^^^
23.53     |
23.53     = help: externally exported functions are functions with `#[no_mangle]`, `#[export_name]`, or `#[linkage]`
23.53
23.53 warning: `#[inline]` is ignored on externally exported functions
23.53    --> rustpad-wasm/src/lib.rs:131:5
23.53     |
23.53 131 |     #[inline]
23.53     |     ^^^^^^^^^
23.53     |
23.53     = help: externally exported functions are functions with `#[no_mangle]`, `#[export_name]`, or `#[linkage]`
23.53
24.20 warning: `rustpad-wasm` (lib) generated 3 warnings
24.20     Finished `release` profile [optimized] target(s) in 17.31s
24.21 [INFO]: Installing wasm-bindgen...
54.30     Updating crates.io index
54.42  Downloading crates ...
54.50   Downloaded wasm-bindgen-cli v0.2.92
54.65   Installing wasm-bindgen-cli v0.2.92
54.69     Updating crates.io index
57.05      Locking 184 packages to latest compatible versions
57.06       Adding env_logger v0.8.4 (available: v0.11.11)
57.06       Adding js-sys v0.3.69 (available: v0.3.104)
57.12       Adding ureq v2.12.1 (available: v3.4.0)
57.12       Adding walrus v0.20.3 (available: v0.26.5)
57.12       Adding wasm-bindgen v0.2.92 (available: v0.2.127)
57.12       Adding wasm-bindgen-backend v0.2.92 (available: v0.2.104)
57.12       Adding wasm-bindgen-cli-support v0.2.92 (available: v0.2.127)
57.12       Adding wasm-bindgen-externref-xform v0.2.92 (available: v0.2.100)
57.12       Adding wasm-bindgen-macro v0.2.92 (available: v0.2.127)
57.12       Adding wasm-bindgen-macro-support v0.2.92 (available: v0.2.127)
57.13       Adding wasm-bindgen-multi-value-xform v0.2.92 (available: v0.2.100)
57.13       Adding wasm-bindgen-shared v0.2.92 (available: v0.2.127)
57.13       Adding wasm-bindgen-threads-xform v0.2.92 (available: v0.2.100)
57.13       Adding wasm-bindgen-wasm-conventions v0.2.92 (available: v0.2.100)
57.13       Adding wasm-bindgen-wasm-interpreter v0.2.92 (available: v0.2.100)
57.14  Downloading crates ...
57.17   Downloaded adler2 v2.0.1
57.17   Downloaded alloc-no-stdlib v2.0.4
57.19   Downloaded aho-corasick v1.1.5
57.19   Downloaded itoa v1.0.18
57.20   Downloaded form_urlencoded v1.2.2
57.20   Downloaded autocfg v1.5.1
57.20   Downloaded alloc-stdlib v0.2.4
57.21   Downloaded idna_adapter v1.2.2
57.21   Downloaded lazy_static v1.5.0
57.21   Downloaded crossbeam-deque v0.8.7
57.21   Downloaded anyhow v1.0.104
57.22   Downloaded deranged v0.5.8
57.22   Downloaded getrandom v0.2.17
57.22   Downloaded strsim v0.10.0
57.23   Downloaded errno v0.3.14
57.23   Downloaded id-arena v2.3.0
57.23   Downloaded leb128 v0.2.7
57.23   Downloaded ascii v1.1.0
57.23   Downloaded either v1.18.0
57.24   Downloaded getrandom v0.4.3
57.24   Downloaded rustls-pki-types v1.15.1
57.25   Downloaded cfg-if v1.0.4
57.25   Downloaded chunked_transfer v1.5.0
57.25   Downloaded percent-encoding v2.3.2
57.25   Downloaded sha1_smol v1.0.1
57.25   Downloaded heck v0.3.3
57.25   Downloaded num-conv v0.2.2
57.26   Downloaded num_cpus v1.17.0
57.26   Downloaded num_threads v0.1.7
57.26   Downloaded potential_utf v0.1.6
57.26   Downloaded powerfmt v0.2.0
57.26   Downloaded safemem v0.3.3
57.26   Downloaded stable_deref_trait v1.2.1
57.27   Downloaded subtle v2.6.1
57.27   Downloaded threadpool v1.8.1
57.27   Downloaded zerofrom v0.1.8
57.27   Downloaded buf_redux v0.8.4
57.27   Downloaded fastrand v2.5.0
57.28   Downloaded filetime v0.2.29
57.28   Downloaded time-core v0.1.9
57.28   Downloaded base64 v0.13.1
57.28   Downloaded bitflags v2.13.1
57.29   Downloaded wasm-bindgen-externref-xform v0.2.92
57.29   Downloaded wasm-bindgen-wasm-interpreter v0.2.92
57.29   Downloaded webpki-roots v0.26.11
57.29   Downloaded displaydoc v0.2.7
57.29   Downloaded find-msvc-tools v0.1.11
57.30   Downloaded rustc-demangle v0.1.28
57.30   Downloaded quote v1.0.47
57.30   Downloaded humantime v2.4.0
57.30   Downloaded ppv-lite86 v0.2.21
57.31   Downloaded shlex v2.0.1
57.31   Downloaded unicase v2.9.0
57.31   Downloaded crc32fast v1.5.1
57.31   Downloaded crossbeam-epoch v0.9.20
57.31   Downloaded crossbeam-utils v0.8.22
57.31   Downloaded env_logger v0.8.4
57.32   Downloaded fallible-iterator v0.2.0
57.32   Downloaded litemap v0.8.3
57.32   Downloaded simd-adler32 v0.3.10
57.32   Downloaded smallvec v1.15.2
57.32   Downloaded synstructure v0.13.2
57.32   Downloaded tempfile v3.27.0
57.32   Downloaded twoway v0.1.8
57.33   Downloaded base64 v0.22.1
57.33   Downloaded docopt v1.1.1
57.33   Downloaded httparse v1.10.1
57.33   Downloaded iana-time-zone v0.1.65
57.34   Downloaded once_cell v1.21.4
57.34   Downloaded proc-macro2 v1.0.107
57.34   Downloaded serde_core v1.0.229
57.34   Downloaded zmij v1.0.23
57.34   Downloaded flate2 v1.1.10
57.35   Downloaded icu_properties v2.3.0
57.35   Downloaded icu_provider v2.3.1
57.35   Downloaded log v0.4.34
57.35   Downloaded multipart v0.18.0
57.36   Downloaded serde_derive v1.0.229
57.36   Downloaded writeable v0.6.4
57.36   Downloaded icu_normalizer_data v2.3.0
57.36   Downloaded miniz_oxide v0.9.1
57.37   Downloaded rayon-core v1.13.0
57.37   Downloaded rouille v3.6.2
57.37   Downloaded rustls-webpki v0.103.15
57.38   Downloaded serde v1.0.229
57.38   Downloaded wasm-bindgen-wasm-conventions v0.2.92
57.38   Downloaded cc v1.4.4
57.38   Downloaded icu_collections v2.3.0
57.39   Downloaded icu_locale_core v2.3.0
57.39   Downloaded memchr v2.8.3
57.40   Downloaded rand v0.8.8
57.40   Downloaded yoke-derive v0.8.2
57.40   Downloaded zerotrie v0.2.5
57.41   Downloaded unicode-segmentation v1.13.3
57.41   Downloaded wasm-bindgen-threads-xform v0.2.92
57.41   Downloaded zerovec v0.11.8
57.41   Downloaded icu_properties_data v2.3.0
57.42   Downloaded idna v1.1.0
57.43   Downloaded walrus-macro v0.19.0
57.43   Downloaded wasm-bindgen-multi-value-xform v0.2.92
57.43   Downloaded zerofrom-derive v0.1.7
57.43   Downloaded zerovec-derive v0.11.6
57.43   Downloaded regex v1.13.1
57.43   Downloaded serde_json v1.0.151
57.44   Downloaded brotli-decompressor v4.0.3
57.45   Downloaded rayon v1.12.0
57.45   Downloaded walrus v0.20.3
57.46   Downloaded chrono v0.4.45
57.46   Downloaded zerocopy v0.8.56
57.48   Downloaded time v0.3.55
57.49   Downloaded syn v3.0.4
57.50   Downloaded syn v2.0.119
57.51   Downloaded regex-syntax v0.8.11
57.51   Downloaded rustls v0.23.43
57.52   Downloaded rustix v1.1.4
57.54   Downloaded utf8_iter v1.0.4
57.54   Downloaded icu_normalizer v2.3.0
57.55   Downloaded zeroize v1.9.0
57.55   Downloaded regex-automata v0.4.18
57.57   Downloaded gimli v0.26.2
57.58   Downloaded libc v0.2.189
57.61   Downloaded tinystr v0.8.4
57.62   Downloaded yoke v0.8.3
57.62   Downloaded ring v0.17.14
57.65   Downloaded tiny_http v0.12.0
57.65   Downloaded wasm-encoder v0.29.0
57.66   Downloaded unicode-ident v1.0.24
57.66   Downloaded url v2.5.8
57.66   Downloaded wasmparser v0.80.2
57.67   Downloaded wasm-bindgen-cli-support v0.2.92
57.67   Downloaded ureq v2.12.1
57.67   Downloaded linux-raw-sys v0.12.1
57.73   Downloaded webpki-roots v1.0.9
57.73   Downloaded zlib-rs v0.6.7
57.84    Compiling proc-macro2 v1.0.107
57.84    Compiling unicode-ident v1.0.24
57.84    Compiling quote v1.0.47
57.84    Compiling stable_deref_trait v1.2.1
57.89    Compiling libc v0.2.189
58.08    Compiling autocfg v1.5.1
58.12    Compiling cfg-if v1.0.4
58.20    Compiling crossbeam-utils v0.8.22
58.62    Compiling log v0.4.34
59.20    Compiling crossbeam-epoch v0.9.20
59.53    Compiling crossbeam-deque v0.8.7
60.16    Compiling syn v2.0.119
60.31    Compiling syn v3.0.4
61.16    Compiling memchr v2.8.3
61.96    Compiling rayon-core v1.13.0
62.64    Compiling indexmap v1.9.3
62.93    Compiling syn v1.0.109
64.40    Compiling getrandom v0.2.17
64.85    Compiling either v1.18.0
65.19    Compiling anyhow v1.0.104
65.70    Compiling synstructure v0.13.2
66.63    Compiling writeable v0.6.4
67.13    Compiling zerovec-derive v0.11.6
67.31    Compiling displaydoc v0.2.7
67.65    Compiling zerofrom-derive v0.1.7
67.73    Compiling yoke-derive v0.8.2
68.80    Compiling hashbrown v0.12.3
69.43    Compiling litemap v0.8.3
69.60    Compiling zerofrom v0.1.8
69.63    Compiling unicode-segmentation v1.13.3
69.82    Compiling yoke v0.8.3
70.12    Compiling zerovec v0.11.8
70.15    Compiling zerotrie v0.2.5
70.56    Compiling heck v0.3.3
70.84    Compiling rayon v1.12.0
71.51    Compiling tinystr v0.8.4
71.72    Compiling potential_utf v0.1.6
71.87    Compiling icu_locale_core v2.3.0
72.10    Compiling shlex v2.0.1
72.38    Compiling icu_properties_data v2.3.0
72.66    Compiling icu_normalizer_data v2.3.0
72.95    Compiling find-msvc-tools v0.1.11
73.33    Compiling leb128 v0.2.7
73.55    Compiling fallible-iterator v0.2.0
74.42    Compiling utf8_iter v1.0.4
74.66    Compiling icu_collections v2.3.0
76.53    Compiling gimli v0.26.2
77.43    Compiling id-arena v2.3.0
77.82    Compiling walrus-macro v0.19.0
77.84    Compiling icu_provider v2.3.1
79.18    Compiling wasm-encoder v0.29.0
79.29    Compiling cc v1.4.4
80.99    Compiling wasmparser v0.80.2
82.28    Compiling zerocopy v0.8.56
82.60    Compiling serde_core v1.0.229
82.91    Compiling ring v0.17.14
83.24    Compiling zeroize v1.9.0
83.51    Compiling smallvec v1.15.2
83.94    Compiling getrandom v0.4.3
84.15    Compiling walrus v0.20.3
84.29    Compiling once_cell v1.21.4
84.55    Compiling rustix v1.1.4
85.31    Compiling icu_normalizer v2.3.0
88.54    Compiling rustls-pki-types v1.15.1
90.73    Compiling icu_properties v2.3.0
97.44    Compiling bitflags v2.13.1
98.33    Compiling zmij v1.0.23
98.79    Compiling unicase v2.9.0
99.19    Compiling linux-raw-sys v0.12.1
101.5    Compiling mime_guess v2.0.5
102.6    Compiling idna_adapter v1.2.2
103.1    Compiling rand_core v0.6.4
103.7    Compiling aho-corasick v1.1.5
106.9    Compiling ppv-lite86 v0.2.21
107.7    Compiling num-traits v0.2.19
108.0    Compiling serde v1.0.229
108.0    Compiling httparse v1.10.1
108.3    Compiling crc32fast v1.5.1
108.5    Compiling fastrand v2.5.0
108.7    Compiling serde_json v1.0.151
109.0    Compiling percent-encoding v2.3.2
109.0    Compiling regex-syntax v0.8.11
109.6    Compiling untrusted v0.9.0
117.1    Compiling regex-automata v0.4.18
118.9    Compiling form_urlencoded v1.2.2
119.3    Compiling tempfile v3.27.0
121.3    Compiling rand_chacha v0.3.1
122.2    Compiling idna v1.1.0
123.9    Compiling wasm-bindgen-wasm-conventions v0.2.92
123.9    Compiling serde_derive v1.0.229
124.7    Compiling adler2 v2.0.1
124.8    Compiling mime v0.3.17
125.6    Compiling safemem v0.3.3
125.7    Compiling itoa v1.0.18
126.0    Compiling alloc-no-stdlib v2.0.4
126.0    Compiling rustls v0.23.43
126.2    Compiling simd-adler32 v0.3.10
126.5    Compiling wasm-bindgen-shared v0.2.92
126.7    Compiling miniz_oxide v0.9.1
128.5    Compiling alloc-stdlib v0.2.4
129.2    Compiling buf_redux v0.8.4
129.2    Compiling url v2.5.8
129.8    Compiling rand v0.8.8
133.3    Compiling regex v1.13.1
133.5    Compiling rustls-webpki v0.103.15
134.0    Compiling webpki-roots v1.0.9
134.1    Compiling twoway v0.1.8
134.6    Compiling num_cpus v1.17.0
136.7    Compiling subtle v2.6.1
137.0    Compiling num_threads v0.1.7
137.2    Compiling deranged v0.5.8
137.4    Compiling chunked_transfer v1.5.0
137.5    Compiling httpdate v1.0.3
138.4    Compiling ascii v1.1.0
138.5    Compiling quick-error v1.2.3
138.7    Compiling time-core v0.1.9
139.1    Compiling powerfmt v0.2.0
139.6    Compiling iana-time-zone v0.1.65
139.7    Compiling num-conv v0.2.2
139.8    Compiling tiny_http v0.12.0
139.9    Compiling chrono v0.4.45
140.0    Compiling time v0.3.55
140.6    Compiling multipart v0.18.0
143.4    Compiling threadpool v1.8.1
145.8    Compiling webpki-roots v0.26.11
145.9    Compiling flate2 v1.1.10
147.3    Compiling brotli-decompressor v4.0.3
150.8    Compiling wasm-bindgen-threads-xform v0.2.92
152.3    Compiling wasm-bindgen-wasm-interpreter v0.2.92
153.4    Compiling wasm-bindgen-externref-xform v0.2.92
154.7    Compiling wasm-bindgen-multi-value-xform v0.2.92
155.6    Compiling filetime v0.2.29
156.1    Compiling atty v0.2.14
156.2    Compiling base64 v0.22.1
157.2    Compiling sha1_smol v1.0.1
157.5    Compiling termcolor v1.4.1
157.8    Compiling base64 v0.21.7
158.8    Compiling rustc-demangle v0.1.28
159.1    Compiling humantime v2.4.0
160.0    Compiling lazy_static v1.5.0
160.2    Compiling strsim v0.10.0
160.4    Compiling base64 v0.13.1
161.1    Compiling rouille v3.6.2
161.5    Compiling docopt v1.1.1
162.1    Compiling env_logger v0.8.4
166.6    Compiling wasm-bindgen-cli-support v0.2.92
170.4    Compiling ureq v2.12.1
195.3    Compiling wasm-bindgen-cli v0.2.92
204.2     Finished `release` profile [optimized] target(s) in 2m 29s
204.3 warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0
204.3 note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
204.3   Installing /root/.cache/.wasm-pack/.wasm-bindgen-cargo-install-0.2.92/bin/wasm-bindgen
204.3   Installing /root/.cache/.wasm-pack/.wasm-bindgen-cargo-install-0.2.92/bin/wasm-bindgen-test-runner
204.3   Installing /root/.cache/.wasm-pack/.wasm-bindgen-cargo-install-0.2.92/bin/wasm2es6js
204.3    Installed package `wasm-bindgen-cli v0.2.92` (executables `wasm-bindgen`, `wasm-bindgen-test-runner`, `wasm2es6js`)
204.4 warning: be sure to add `/root/.cache/.wasm-pack/.wasm-bindgen-cargo-install-0.2.92/bin` to your PATH to be able to run the installed binaries
234.5 Error: failed to download from https://github.com/WebAssembly/binaryen/releases/download/version_117/binaryen-version_117-x86_64-linux.tar.gz
234.5 To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
234.5 Caused by: failed to download from https://github.com/WebAssembly/binaryen/releases/download/version_117/binaryen-version_117-x86_64-linux.tar.gz
234.5 To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
------

 2 warnings found (use docker --debug to expand):
 - FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "amd64" (line 8)
 - FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "amd64" (line 15)
Dockerfile:13
--------------------
  11 |     RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
  12 |     COPY . .
  13 | >>> RUN wasm-pack build rustpad-wasm
  14 |
  15 |     FROM --platform=amd64 node:lts-alpine AS frontend
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c wasm-pack build rustpad-wasm" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions