From df9991bd3d40935ec7f6f7dc33b37f330398e540 Mon Sep 17 00:00:00 2001 From: HiveTrending Date: Thu, 23 Feb 2023 07:20:52 -0800 Subject: [PATCH] Install git and copy .git directory during container build so that the encoder client's git commit_hash can be reported --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c5a286e..b65f937 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ FROM node:16.15.1-alpine -RUN apk add --no-cache ffmpeg +# Install OS dependencies +RUN apk add --no-cache ffmpeg +# Install git for reporting commit_hash +RUN apk --no-cache add git +COPY .git/* ./.git/ # Create app directory WORKDIR /home/github/app