Fix docker VCS stamping

added
 ```RUN git config --global --add safe.directory '/app'```
pull/3393/head
Hitesh Aringa 2023-09-25 20:00:58 -07:00 committed by Johannes Batzill
parent a8cb5dc8d2
commit b24b21742a
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@ RUN apk update \
# Setup workig dir
WORKDIR /app
RUN git config --global --add safe.directory '/app'
# Get dependancies - will also be cached if we won't change mod/sum
COPY go.mod .
COPY go.sum .
@ -78,4 +80,4 @@ COPY --from=cert-image /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-cert
EXPOSE 3000
EXPOSE 3001
ENTRYPOINT [ "/app/gitness", "server" ]
ENTRYPOINT [ "/app/gitness", "server" ]