[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality not to work as expected)
How Has This Been Tested?
Build the image using the modified Dockerfile:
docker build -t twitch-channel-points-miner-v2 .
Verify the image size has been reduced:
docker images twitch-channel-points-miner-v2
# REPOSITORY TAG IMAGE ID CREATED SIZE
# twitch-channel-points-miner-v2 latest 42f380969c14 2 hours ago 286MB
Run the image
docker run --rm -v ./run.py:/usr/src/app/run.py twitch-channel-points-miner-v2
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented on my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (README.md)
[x] My changes generate no new warnings
[ ] Any dependent changes have been updated in requirements.txt
Description
I modified the Dockerfile to use the distroless image as the base image. The resulting image size has been reduced.
However, the
distroless/python3-debian12
image does not support thearm/v7
architecture; it only supportsamd64
andarm64
.For more details, see the distroless documentation.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist: