diff --git a/README.rst b/README.rst index 4c83613e..588e4424 100644 --- a/README.rst +++ b/README.rst @@ -424,6 +424,12 @@ Example: ``mfe-dockerfile-pre-npm-install-learning`` will only apply any instruc File changed: ``tutormfe/templates/mfe/build/mfe/Dockerfile`` +mfe-dockerfile-production-final +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Add any instructions in the final layer. Useful for overriding the CMD or ENTRYPOINT. + +File changed: ``tutormfe/templates/mfe/build/mfe/Dockerfile`` + mfe-dockerfile-post-npm-install ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Add any instructions for after the npm install has completed. This will apply the instructions to every MFE. For an example on the usage of this patch, check out `here <#mfe-docker-post-npm-install>`_. diff --git a/changelog.d/20231220_054305_moisesgsalas.add_docker_final_patch.md b/changelog.d/20231220_054305_moisesgsalas.add_docker_final_patch.md new file mode 100644 index 00000000..48468287 --- /dev/null +++ b/changelog.d/20231220_054305_moisesgsalas.add_docker_final_patch.md @@ -0,0 +1,13 @@ + + + + + +- [Feature] Add a new `mfe-dockerfile-production-final` patch to define additional instructions in the final image. (by @MoisesGSalas) diff --git a/tutormfe/templates/mfe/build/mfe/Dockerfile b/tutormfe/templates/mfe/build/mfe/Dockerfile index d637d97a..732000f2 100644 --- a/tutormfe/templates/mfe/build/mfe/Dockerfile +++ b/tutormfe/templates/mfe/build/mfe/Dockerfile @@ -111,3 +111,5 @@ RUN mkdir -p /openedx/dist {% for app_name, app in iter_mfes() %} COPY --from={{ app_name }}-prod /openedx/app/dist /openedx/dist/{{ app_name }} {% endfor %} + +{{ patch("mfe-dockerfile-production-final") }}