Update Dockerfile to install Rust and wasm-pack

Set up Rust environment and install wasm-pack.
This commit is contained in:
Alexandre
2025-12-27 08:58:27 +01:00
committed by GitHub
parent ceb7eb2176
commit 831ae97abb

View File

@@ -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