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

Updated Dockerfiles for consumer and renewer #402

Merged
merged 2 commits into from
Mar 9, 2020

Conversation

banaag
Copy link
Collaborator

@banaag banaag commented Mar 5, 2020

Updated Dockerfiles for consumer and renewer to use multi-stage and reduce docker image sizes from 2GB to 12.3MB

@banaag banaag requested a review from twifkak March 5, 2020 22:19
# Start the AMP Packager
ENTRYPOINT ["amppkg"]

# Set default flags to run in development mode.
# Set default flags to run in autorenew cert mode.
CMD ["-autorenewcert", "-config=/renewer/amppkg_renewer.toml"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered making this inherit from Dockerfile.consumer to reduce duplication?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly possible but decided to keep them separate for now until everything settles down. We may revisit for a future PR.

@banaag banaag merged commit b3f27f4 into ampproject:master Mar 9, 2020
@banaag banaag deleted the docker branch April 15, 2020 21:48
cpapazian pushed a commit to cpapazian/amppackager that referenced this pull request May 19, 2020
* Updated Dockerfiles for consumer and renewer to use multi-stage and reduce docker image sizes from 2GB to 12.3MB

* Added comments to sync up consumer file to renewer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants