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

Refactoring #13

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Refactoring #13

wants to merge 6 commits into from

Conversation

solidnerd
Copy link

Hey @cptactionhank ,

thanks for your work on this awesome image. I tried it out and it works directly out of the box. I did some refactoring to the Dockerfile this resulted in a smaller image size because the problem of your current Dockerfile is that you are trying to remove something for an another layer and this doesn't work. The netatalk image is your builded image from your current Dockerfile from master. I did some refactorings and now we got only 217.9 MB on my refactored image.

REPOSITORY               TAG                 IMAGE ID            CREATED             SIZE
netatalk-new             latest              2fca29ab7490        33 minutes ago      217.9 MB
netatalk                 latest              25253d84d2e5        2 hours ago         506.3 MB

WDYT ?

Signed-off-by: solidnerd <niclas@mietz.io>
Signed-off-by: solidnerd <niclas@mietz.io>
The behaviour before was two use 2 seprated layers and that didn’t work when you are trying to remove something from the layer below your current layer. Because every layer under your current layer is readonly.

Signed-off-by: solidnerd <niclas@mietz.io>
Signed-off-by: solidnerd <niclas@mietz.io>
Signed-off-by: solidnerd <niclas@mietz.io>
Signed-off-by: solidnerd <niclas@mietz.io>
@AGresvig
Copy link

Nice work!
Bump..

@solidnerd
Copy link
Author

Thanks :)

@utdrmac
Copy link

utdrmac commented Dec 6, 2019

Can't you get this even smaller by using multi-stage build and just copy the resulting compiled binary to a new image?

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.

None yet

3 participants