Don't require the .git directory to exist for a successful Docker build.

This commit is contained in:
Jyri-Petteri Paloposki 2024-07-18 22:09:35 +03:00
parent 8f7b1ab7b2
commit d2fff6a64c

View file

@ -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/