Open AFCMS opened 1 month ago
I don't have a really specific usecase, I did this PR mostly as a training for both Docker and Rust :sweat_smile: (I use the tool with cargo install
usually)
Anyways, I think the benefit of a Docker container over the portable binary is that you don't need to go to the download page, extract the binary and then go back regularly to check if there is any new version.
With Docker you can just run the command in documentation with the latest image and the --pull=always
flag, so it will download or update if needed and run the program automatically.
Thanks for the comment @AFCMS, I do indeed realize now that the convenience of unifying software distribution through Docker containers can be valuable. Let's wait a bit for Josh's view on using GitHub Packages before merging :rocket:
I wonder if it would be better for someone to maintain this externally from the main repo...
I wonder if it would be better for someone to maintain this externally from the main repo...
I think it's more discoverable and official-looking to use the same repository both for Docker images and development, but anyone is free to create a repository for hosting their own OxiPNG Docker images of course.
Fix #610
linux/amd64
andlinux/arm64
supported and tested (Tier 1 platform support from Rust)I also changed the WORKDIR from
/src
to/work
, because if got me confused with the use of the src folder for the project source in the first stage of the Dockerfile. It doesn't impact anything anyways since you can mount the file where you want and have the program options point to it.How to test? After checking out the branch and making sure you have QEMU installed to build/test
For the workflow, see the GitHub Actions logs. If you want to test the ghcr.io publishing you can merge the branch into a fork and see the result.