From eecb46e4b860ac4949bf2efecb1605ed436eb36d Mon Sep 17 00:00:00 2001 From: Adrien Date: Tue, 16 Apr 2024 23:13:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Displayed=20versions=20are=20alw?= =?UTF-8?q?ays=20computed=20as=20dirty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 5 ++--- Dockerfile | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index c7deb2f..407f759 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,5 @@ # .git directory is not filtered here: we need to copy the .git directory in the builder image to compute the version. +# media directory, README.md and Dockerfile files are not filtered to avoid the dockerized building env to get dirty +# and append the "-modified" suffix to the displayed version. dist -medias -README.md target -Dockerfile diff --git a/Dockerfile b/Dockerfile index 5cc7b0a..94e63da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,9 @@ ARG CARGO_INCREMENTAL=0 WORKDIR /usr/src/beau-gosse-du-92 +RUN apt update \ + && apt install -y git-lfs + COPY . . RUN /usr/local/bin/dx build -r --platform web -- -j ${JOBS_NB}