Docker support
Der-Eddy opened this issue · 1 comments
Der-Eddy commented
Consists of two goals:
- adding a dockerfile to build a ready to deploy image for containerization software (Docker, Podman, etc.) probably based of the official python image
- automatic build and upload of a docker image to the Docker Hub, probably something like this https://github.com/marketplace/actions/build-and-push-docker-images
Der-Eddy commented
In the end I decided to do a multistage build which gets all dependencies in the official python-slim image while running the actual service in Googles distroless image which doesn't even have a shell
the size of final image is around 90 MB, the build image is around 180 MB in size
docker images get automatically build via GitHub Actions and uploaded to GitHubs own docker registry instead of Docker Hub
to actually run the Docker image see https://github.com/Der-Eddy/discord_bot#run-docker-method
41e865a...58cd7a8 for all commits in question