From d2fff6a64c4988744f0f164ce9ccfa8a3481b648 Mon Sep 17 00:00:00 2001 From: Jyri-Petteri Paloposki Date: Thu, 18 Jul 2024 22:09:35 +0300 Subject: [PATCH] Don't require the .git directory to exist for a successful Docker build. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fb60c234..ee0313a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,9 @@ COPY lib /app/lib/ COPY app /app/app/ COPY db /app/db/ -COPY .git /app/.git +# Use glob to omit error if the .git directory doesn't exists (in case the +# code is from a release archive, not a Git clone) +COPY .gi[t] /app/.git COPY Gemfile* /app/