From cbc629d7cda8ae58a45b0cf911a3c21f894613a2 Mon Sep 17 00:00:00 2001 From: FORESTIER Fabien <fabien.forestier@soprasteria.com> Date: Wed, 30 Jan 2019 08:56:18 +0100 Subject: [PATCH] Execute the postinstall script in dockerfile after the copy of the app --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2ef88c6f..07c62d14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,12 @@ COPY ./package.json /app/package.json WORKDIR /app # Install npm dependencies RUN npm install -RUN npm run postinstall # Copy the project COPY . /app +# Launch postinstall script (to include crypto module) +RUN npm run postinstall + ARG env # Building the Angular app /dist i18n -- GitLab