mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
Update Dockerfile to install Rust and wasm-pack
Set up Rust environment and install wasm-pack.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user