From 831ae97abb6580592b028963ab631dfed70e409a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 27 Dec 2025 08:58:27 +0100 Subject: [PATCH] Update Dockerfile to install Rust and wasm-pack Set up Rust environment and install wasm-pack. --- ente/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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