Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add patch at the end of the production layer #179

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

MoisesGSalas
Copy link
Contributor

Description

The mfe-dockerfile-production-final patch allows you to add instructions to the end of the final layer. This is useful in the case you want to override the default CMD or ENTRYPOINT instructions.

Additional info

I think the patch will be useful overall, but my use case is as follows:

I've been exploring the idea of pointing Public Path to a cloudfront endpoint to speed up the MFE asset delivery. The only problem is that I can't reuse the image between environments because the cloudfront endpoint is hardcoded at build time. What I've been playing around is to use a placeholder string as the PUBLIC_PATH and run a startup script in the container that replaces the placeholder with a value set in an environment variable.

The `mfe-dockerfile-production-final` patch allows you to add
instructions to the end of the final layer. This is useful in the case
you want to override the default CMD or ENTRYPOINT instructions.
@regisb regisb added the enhancement New feature or request label Jan 8, 2024
@regisb regisb merged commit 19efd6c into overhangio:master Jan 8, 2024
1 check passed
@regisb
Copy link
Contributor

regisb commented Jan 8, 2024

Thanks for this PR @MoisesGSalas!

@MoisesGSalas MoisesGSalas deleted the mgs/dockerfile-final-patch branch January 23, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants