🐛 Use stable dioxus-cli
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
FROM rust:latest AS builder
|
FROM rust:latest AS builder
|
||||||
|
|
||||||
# Homemade docker image providing the dioxus-cli
|
# Homemade docker image providing the dioxus-cli
|
||||||
COPY --from=rg.fr-par.scw.cloud/asr-projects/dioxus-cli:asr-0.5.2 /usr/local/bin/dx /usr/local/bin/dx
|
# COPY --from=rg.fr-par.scw.cloud/asr-projects/dioxus-cli:asr-0.5.2 /usr/local/bin/dx /usr/local/bin/dx
|
||||||
|
|
||||||
ARG JOBS_NB=${JOBS_NB:-default}
|
ARG JOBS_NB=${JOBS_NB:-default}
|
||||||
# Disable incremental compilation
|
# Disable incremental compilation
|
||||||
@@ -10,15 +10,13 @@ ARG CARGO_INCREMENTAL=0
|
|||||||
|
|
||||||
WORKDIR /usr/src/beau-gosse-du-92
|
WORKDIR /usr/src/beau-gosse-du-92
|
||||||
|
|
||||||
RUN apt update \
|
|
||||||
&& apt install -y git-lfs
|
|
||||||
|
|
||||||
RUN rustup target add wasm32-unknown-unknown \
|
RUN rustup target add wasm32-unknown-unknown \
|
||||||
|
&& cargo install dioxus-cli --locked -j ${JOBS_NB} \
|
||||||
&& cargo install -f wasm-bindgen-cli --version 0.2.93
|
&& cargo install -f wasm-bindgen-cli --version 0.2.93
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN /usr/local/bin/dx build -r --platform web -- -j ${JOBS_NB}
|
RUN dx build -r --platform web -- -j ${JOBS_NB}
|
||||||
|
|
||||||
|
|
||||||
FROM nginx:mainline-alpine-slim
|
FROM nginx:mainline-alpine-slim
|
||||||
|
Reference in New Issue
Block a user