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

Use multi-stage docker build for examples/turn-server/simple to reduce container image size #357

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

levaitamas
Copy link
Contributor

The current docker build of examples/turn-server/simple results a large (944MB) image.
This PR implements multi-stage build that reduces image size to 10.2MB.

Copy link
Member

@stv0g stv0g left a comment

Choose a reason for hiding this comment

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

Looks great! Would you mind removing the the comment and merge it?

examples/turn-server/simple/Dockerfile Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6a55914) 67.31% compared to head (1c8f150) 67.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #357      +/-   ##
==========================================
+ Coverage   67.31%   67.52%   +0.21%     
==========================================
  Files          42       42              
  Lines        2848     2848              
==========================================
+ Hits         1917     1923       +6     
+ Misses        769      764       -5     
+ Partials      162      161       -1     
Flag Coverage Δ
go 67.52% <ø> (+0.21%) ⬆️
wasm 48.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@levaitamas
Copy link
Contributor Author

Thanks @stv0g!

@levaitamas levaitamas merged commit 87f1d82 into pion:master Nov 18, 2023
13 checks passed
@levaitamas levaitamas deleted the multistage-docker-build branch November 18, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants