-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Reduce image size - #98 #102
Conversation
PhilippeChepy
commented
Mar 11, 2016
- Reduced image size from 550,5 MB to 386 MB.
Package installation is now run in one command. Cleanup process is now done at end of script.
Merged most RUN commands in Dockerfile. Replaced ADD commands by COPY of the whole /etc and /usr in one operation.
@@ -1,74 +1,71 @@ | |||
FROM ubuntu:14.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move to Debian:8.3 can help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested with Debian:jessie and curiously size of image increased. But it produce a working image as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me, but i use other cleanup process
apt-get -y clean && apt-get -y autoclean && apt-get -y autoremove && \
cp -R /usr/share/locale/en\@* /tmp/ && rm -rf /usr/share/locale/* && mv /tmp/en\@* /usr/share/locale/ && \
rm -rf /var/cache/debconf/*-old && rm -rf /var/lib/apt/lists/* && rm -rf /usr/share/doc/*
@PhilippeChepy thanks for this work! |
Hi @PhilippeChepy, let me know. Note that the branch has conflicts. |
I moved all files that needs to be in image in the |
I'm merging manually and checking things. |
This PR is conflicting again. @PhilippeChepy could you have a look? |
Closed due to inactivity. |
…ker-mailserver v2