From a7376ece2f72d4d7567555700a38e5726bda371c Mon Sep 17 00:00:00 2001 From: Pierre-Etienne Bougue Date: Thu, 1 Apr 2021 16:20:55 +0200 Subject: [PATCH] [fix] allow git-version in dockerfile --- .dockerignore | 1 - Dockerfile | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index dd58b546f..e865989df 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,5 @@ ./examples **/target -**/.git *.md Dockerfile ./tests diff --git a/Dockerfile b/Dockerfile index 0d603ec0d..e7e73af39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,7 @@ COPY --from=proj-builder /tmp/proj-build / WORKDIR /usr/src/app COPY . ./ # install rustup -RUN apt install --yes curl +RUN apt install --yes curl git RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH "/root/.cargo/bin:$PATH" # build the project