Reduce Docker image size. resolves #269#270
Conversation
|
I'm using this in Production in combination with #265 |
cc8e5ab to
623ed59
Compare
|
Is this already available on docker hub somewhere? |
No sorry, but you can download the PR and build the image in your server: |
Size (uncompressed): Previous 573.1 MB / This PR 225.8 MB Container startup time is faster. Ansible and chown where slow Build time is 3 times faster. Less packages and TAR download No changes required by the user. Same env vars, same paths, same core packages ... * Update Alpine 3.14. gnu-libiconv is already fixed in this version * Remove heavy packages: ansible, git, make, bash ... * Download Wallabag TAR. Is faster and git is not required * Replace environment variables with envsubst * Reorder steps to build faster and reduce image size
|
I don't know if anyone is using this image but me. I just pushed a commit with Wallabag 2.5.1 + Alpine 3.16 + PHP 8 |
|
@j0k3r @Kdecherf I'm using a custom Docker image but I'm interested in merge upstream. If you are willing to merge I can split this PR into smaller PRs. Also tell me if some changes in this PR are not going to be accepted (like using PHP 8) The PRs could be something like:
|
|
Already fixed in other PRs |
Size (uncompressed): Previous 573.1 MB / This PR 225.8 MB
Container startup time is faster. Ansible and chown were slow
Build time is 3 times faster. Less packages and TAR download
No changes required by the user. Same env vars, same paths, same core packages ...