From 85d8f0a3736dc848a52ae9f7adc45dd9a537bdce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Gonz=C3=A1lez?= Date: Mon, 28 Aug 2023 08:19:59 -0400 Subject: [PATCH] feat: additional patches before npm build in the Dockerfile --- tutormfe/templates/mfe/build/mfe/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutormfe/templates/mfe/build/mfe/Dockerfile b/tutormfe/templates/mfe/build/mfe/Dockerfile index 5176c322..4bf01191 100644 --- a/tutormfe/templates/mfe/build/mfe/Dockerfile +++ b/tutormfe/templates/mfe/build/mfe/Dockerfile @@ -90,6 +90,8 @@ CMD ["/bin/bash", "-c", "npm run start --- --config ./webpack.dev-tutor.config.j ######## {{ app_name }} (production) FROM {{ app_name }}-common AS {{ app_name }}-prod ENV NODE_ENV=production +{{ patch("mfe-dockerfile-pre-npm-build") }} +{{ patch("mfe-dockerfile-pre-npm-build-{}".format(app_name)) }} RUN npm run build {% endfor %}