Bump relay initcontrainer to Node 13, use Alpine
Alpine gives a smaller image, though it requires a multistage build
since the base Alpine image doens't include git.
-FROM node:11 AS runtime
+FROM node:13-alpine AS install
+
+RUN apk --no-cache add git
WORKDIR /tmp
@@ -7,8 +9,16 @@ COPY ./package-lock.json /tmp/package-lock.json
RUN npm ci
+FROM node:13-alpine
+
+WORKDIR /tmp
+
+COPY --from=install /tmp .
+
COPY ./env-template /tmp/env-template
COPY ./provision-relay-maintainer.js /tmp/provision-relay-maintainer.js
+RUN mkdir -p /mnt/relay-maintainer
+
ENTRYPOINT ["node", "./provision-relay-maintainer.js"]
