diff --git a/changelog.d/20231208_112435_danyal.faheem_mfe_post_npm_build_patch.md b/changelog.d/20231208_112435_danyal.faheem_mfe_post_npm_build_patch.md new file mode 100644 index 00000000..8d5bf3cb --- /dev/null +++ b/changelog.d/20231208_112435_danyal.faheem_mfe_post_npm_build_patch.md @@ -0,0 +1 @@ +- [Feature] Added patch to allow changes to Dockerfile after the npm build has completed. (by @Danyal-Faheem) \ No newline at end of file diff --git a/tutormfe/templates/mfe/build/mfe/Dockerfile b/tutormfe/templates/mfe/build/mfe/Dockerfile index 856b7a31..0a1c43e9 100644 --- a/tutormfe/templates/mfe/build/mfe/Dockerfile +++ b/tutormfe/templates/mfe/build/mfe/Dockerfile @@ -100,6 +100,8 @@ CMD ["/bin/bash", "-c", "npm run start --- --config ./webpack.dev-tutor.config.j FROM {{ app_name }}-common AS {{ app_name }}-prod ENV NODE_ENV=production RUN npm run build +{{ patch("mfe-dockerfile-post-npm-build") }} +{{ patch("mfe-dockerfile-post-npm-build-{}".format(app_name)) }} {% endfor %} ####### final production image with all static assets