mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +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
|
ARG ENTE_WEB_TAG=main
|
||||||
|
|
||||||
# ---- tools we need to build (git, yarn)
|
# ---- 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
|
# ---- pull the web source
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|||||||
Reference in New Issue
Block a user