From 5ca97d88a3083bf4d09a8c4e3338a2dffca023ea Mon Sep 17 00:00:00 2001 From: Mike <22322602+MikePadge@users.noreply.github.com> Date: Mon, 12 Apr 2021 00:57:45 -0500 Subject: [PATCH] Add git to Dockerfile apks (#1061) Git needs to be added to the docker image or the build fails at the npm install stage. _Looks at iris_ ... npm ERR! path git npm ERR! errno -2 npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/irislib/iris-messenger.git ... --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9ede729f..374be389 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ADD . . ENV NPM_CONFIG_LOGLEVEL warn RUN apk update && apk upgrade \ && apk add --no-cache ca-certificates nodejs-npm \ - && apk add --no-cache --virtual .build-dependencies python2 make g++ \ + && apk add --no-cache --virtual .build-dependencies python2 make g++ git \ && npm install --production=false \ && apk del .build-dependencies && rm -rf /var/cache/* /tmp/npm* EXPOSE 8080