From 58add8fc5fbf6f42aec15c69668f2ca485d70c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 31 May 2019 16:02:27 +0200 Subject: [PATCH] Install `envsubst` in Dockerfile @ulfgebhardt please setup docker on your machine or a remote machine. Installing `envsubst` on alpine fails with circular dependencies (awkward). So this repo here has a solution: https://github.com/cirocosta/alpine-envsubst/blob/master/Dockerfile#L6 --- .../legacy-migration/maintenance-worker/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deployment/legacy-migration/maintenance-worker/Dockerfile b/deployment/legacy-migration/maintenance-worker/Dockerfile index 1fafce5e8..c4bc5a0a5 100644 --- a/deployment/legacy-migration/maintenance-worker/Dockerfile +++ b/deployment/legacy-migration/maintenance-worker/Dockerfile @@ -3,6 +3,16 @@ FROM humanconnection/neo4j:latest ENV NODE_ENV=maintenance EXPOSE 7687 7474 +ENV BUILD_DEPS="gettext" \ + RUNTIME_DEPS="libintl" + +RUN set -x && \ + apk add --update $RUNTIME_DEPS && \ + apk add --virtual build_deps $BUILD_DEPS && \ + cp /usr/bin/envsubst /usr/local/bin/envsubst && \ + apk del build_deps + + RUN apk upgrade --update RUN apk add --no-cache mongodb-tools openssh nodejs yarn rsync