Der-Eddy/discord_bot

Docker support

Der-Eddy opened this issue · 1 comments

Consists of two goals:

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