Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Slimmer docker image #223

Merged
merged 1 commit into from
Jun 8, 2020
Merged

Slimmer docker image #223

merged 1 commit into from
Jun 8, 2020

Conversation

matrushka
Copy link
Contributor

As of now the docker image for the signalling server is reported as 1.02GB. I did the following things to reduce the image size and the final image I was able to build was only 128MB so it's almost 8x smaller!

  • Switched to node:alpine-lts which is 796.6MB smaller.
  • Switched to a multi-stage build. This way all the build dependencies such as git, python or so doesn't make it into the final image.

Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

Much nicer, thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants