Skip to content

Commit 159882a

Browse files
fix: addons npm tools (icp-bindgen) must be available at runtime (#64)
* fix: addons npm tools (icp-bindgen) must be available at runtime * feat: copy not needed anymore * feat: but copy here
1 parent 77dadc3 commit 159882a

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎Dockerfile.full‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,12 @@ ENV RUSTUP_HOME=/home/apprunner/.rustup \
3838
CARGO_HOME=/home/apprunner/.cargo \
3939
PATH=/home/apprunner/.cargo/bin:$PATH
4040

41-
# Configure npm to install globally to user directory
42-
ENV NPM_CONFIG_PREFIX=/home/apprunner/.npm-global \
43-
PATH=/home/apprunner/.npm-global/bin:$PATH
44-
4541
# Copy list of scripts to run setup
4642
COPY --chown=apprunner:apprunner ./kit/setup/bootstrap ./kit/setup/bootstrap
47-
COPY --chown=apprunner:apprunner ./kit/setup/addons ./kit/setup/addons
4843

4944
# Install core tools required for building WASM (same as in the main Juno repository)
5045
RUN ./kit/setup/bootstrap
5146

52-
# Install extra WASM build tools needed only for this GitHub Action
53-
RUN ./kit/setup/addons
54-
5547
# --- Runtime Stage ---
5648
FROM node:24-slim@sha256:76d0ed0ed93bed4f4376211e9d8fddac4d8b3fbdb54cc45955696001a3c91152
5749

@@ -79,6 +71,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y \
7971
COPY ./kit/setup/tools ./kit/setup/tools
8072
RUN ./kit/setup/tools
8173

74+
# Install extra WASM build tools - e.g. for Sputnik - required by the GitHub Action runtime
75+
COPY ./kit/setup/addons ./kit/setup/addons
76+
RUN ./kit/setup/addons
77+
8278
# Create and use a user instead of using root
8379
RUN useradd -ms /bin/bash apprunner
8480
USER apprunner

0 commit comments

Comments
 (0)