Merge pull request #3037 from TracksApp/dockerfile_git_req

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:14:30 +03:00 committed by GitHub
commit 7b9a1e322f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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/