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
...
This commit is contained in:
Mike 2021-04-12 00:57:45 -05:00 committed by GitHub
parent 429b011955
commit 5ca97d88a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ ADD . .
ENV NPM_CONFIG_LOGLEVEL warn ENV NPM_CONFIG_LOGLEVEL warn
RUN apk update && apk upgrade \ RUN apk update && apk upgrade \
&& apk add --no-cache ca-certificates nodejs-npm \ && 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 \ && npm install --production=false \
&& apk del .build-dependencies && rm -rf /var/cache/* /tmp/npm* && apk del .build-dependencies && rm -rf /var/cache/* /tmp/npm*
EXPOSE 8080 EXPOSE 8080