From 28aa250f58fefbb5c6df95b5a181a051a5fe4ae4 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 27 Apr 2025 03:46:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20=20Use=20the=20custom=20dioxus-c?= =?UTF-8?q?li=20image=20to=20build=20the=20webclient=20dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c47e365..2fc75c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,4 @@ -FROM rust:1.86 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 +FROM rg.fr-par.scw.cloud/asr-projects/dioxus-cli:asr-0.6.3 AS builder ARG JOBS_NB=${JOBS_NB:-default} # Disable incremental compilation @@ -10,6 +7,11 @@ ARG CARGO_INCREMENTAL=0 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 . . RUN dx build -r --platform web -- -j ${JOBS_NB}