rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.21k stars 352 forks source link

Update Dockerfile to improve build process and dependencies #583

Closed Helzoph closed 1 month ago

Helzoph commented 1 month ago

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 the arm/v7 architecture; it only supports amd64 and arm64.

For more details, see the distroless documentation.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

  1. Build the image using the modified Dockerfile:
    docker build -t twitch-channel-points-miner-v2 .
  2. 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
  3. Run the image
    docker run --rm -v ./run.py:/usr/src/app/run.py twitch-channel-points-miner-v2

Checklist: