diff --git a/ente/Dockerfile b/ente/Dockerfile index 0ee5ee212..2c5efffb7 100644 --- a/ente/Dockerfile +++ b/ente/Dockerfile @@ -13,7 +13,15 @@ FROM node:22-alpine AS web-builder ARG ENTE_WEB_TAG=main # ---- tools we need to build (git, yarn) -RUN apk add --no-cache git rust cargo +ENV RUSTUP_HOME=/usr/local/rustup \ + CARGO_HOME=/usr/local/cargo \ + PATH=/usr/local/cargo/bin:$PATH + +RUN apk add --no-cache \ + git curl ca-certificates build-base \ + && curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable \ + && rustup target add wasm32-unknown-unknown \ + && npm install -g wasm-pack@0.13.1 # ---- pull the web source WORKDIR /src