From 8019cf0a99a97161b4bda2f3d7e1247d2bab0e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Gonz=C3=A1lez?= Date: Mon, 28 Aug 2023 11:24:53 -0400 Subject: [PATCH] move pre-build patches to the *-common stage --- tutormfe/templates/mfe/build/mfe/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutormfe/templates/mfe/build/mfe/Dockerfile b/tutormfe/templates/mfe/build/mfe/Dockerfile index 4bf01191..f0d74c26 100644 --- a/tutormfe/templates/mfe/build/mfe/Dockerfile +++ b/tutormfe/templates/mfe/build/mfe/Dockerfile @@ -78,6 +78,8 @@ ENV PUBLIC_PATH='/{{ app_name }}/' # So we point to a relative url that will be a proxy for the LMS. ENV MFE_CONFIG_API_URL=/api/mfe_config/v1 ARG ENABLE_NEW_RELIC=false +{{ patch("mfe-dockerfile-pre-npm-build") }} +{{ patch("mfe-dockerfile-pre-npm-build-{}".format(app_name)) }} ######## {{ app_name }} (dev) FROM {{ app_name }}-common AS {{ app_name }}-dev @@ -90,8 +92,6 @@ 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 %}