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

Optimize result image #101

Merged

Conversation

thaJeztah
Copy link
Member

This patch makes some optimizations in the result service's image;

  • switch to node:8.9-alpine, which a smaller base image
  • use https:// for the registry
  • use COPY instead of ADD, following best pracice
  • cleanup npm cache, and combine steps to reduce image size

These changes bring down the image size from 248MB to 81.2MB

ping @ManoMarks @BretFisher PTAL

This patch makes some optimizations in the result service's image;

- switch to `node:8.9-alpine`, which a smaller base image
- use `https://` for the registry
- use `COPY` instead of `ADD`, following best pracice
- cleanup npm cache, and combine steps to reduce image size

These changes bring down the image size from 248MB to 81.2MB

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@ManoMarks ManoMarks merged commit ae9ea75 into dockersamples:master Jan 4, 2018
@thaJeztah thaJeztah deleted the improve-result-dockerfile branch January 4, 2018 21:13
@BretFisher
Copy link
Collaborator

NICE @thaJeztah !

GhenaCadin pushed a commit to Pokfinner/example-voting-app that referenced this pull request Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants