From f8cef2a216272f9f05e2418a8ed41294a25154c1 Mon Sep 17 00:00:00 2001 From: Adam Goldstone <13471320+agoldstone93@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:18:55 +0000 Subject: [PATCH] Install git in builder stage --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8addff70fd..f1373c551d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,9 @@ FROM base AS builder RUN addgroup -g 1000 -S appgroup \ && adduser -u 1000 -S appuser -G appgroup +# Install Git in the builder stage +RUN apk add --no-cache git + # create app directory in conventional, existing dir /usr/src RUN mkdir -p /usr/src/app && mkdir -p /usr/src/app/tmp WORKDIR /usr/src/app