💚 Use the custom dioxus-cli image to build the webclient dockerfile
Some checks failed
ci/woodpecker/pr/validate Pipeline failed
Some checks failed
ci/woodpecker/pr/validate Pipeline failed
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,7 +1,4 @@
|
|||||||
FROM rust:1.86 AS builder
|
FROM rg.fr-par.scw.cloud/asr-projects/dioxus-cli:asr-0.6.3 AS builder
|
||||||
|
|
||||||
# Homemade docker image providing the dioxus-cli
|
|
||||||
COPY --from=rg.fr-par.scw.cloud/asr-projects/dioxus-cli:asr-0.6.3 /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,6 +7,11 @@ ARG CARGO_INCREMENTAL=0
|
|||||||
|
|
||||||
WORKDIR /usr/src/beau-gosse-du-92
|
WORKDIR /usr/src/beau-gosse-du-92
|
||||||
|
|
||||||
|
# git is required by the git-version crate
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install -y --no-install-recommends git \
|
||||||
|
&& apt clean
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN dx build -r --platform web -- -j ${JOBS_NB}
|
RUN dx build -r --platform web -- -j ${JOBS_NB}
|
||||||
|
Reference in New Issue
Block a user