🐛 Use stable dioxus-cli
Some checks failed
ci/woodpecker/push/validate Pipeline was successful
ci/woodpecker/push/dockerize Pipeline failed
ci/woodpecker/push/deploy unknown status

This commit is contained in:
2024-09-25 21:04:35 +02:00
parent 8652d56f51
commit 8026b6fa32

View File

@@ -1,7 +1,7 @@
FROM rust:latest AS builder
# 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}
# Disable incremental compilation
@@ -10,15 +10,13 @@ ARG CARGO_INCREMENTAL=0
WORKDIR /usr/src/beau-gosse-du-92
RUN apt update \
&& apt install -y git-lfs
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
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