LeagueOfPoro / CapsuleFarmerEvolved

Automatically drops from lolesports.com and farm Esports Capsules
Other
812 stars 128 forks source link

perf Updated the Dockerfile to be smaller. #195

Closed renja-g closed 1 year ago

renja-g commented 1 year ago

Summary of Changes

This pull request updates the Dockerfile for the project to use Alpine Linux instead of Debian Buster as the base image. The Alpine Linux image is smaller and more lightweight, which can result in faster build times and a smaller final image size.

The updated Dockerfile also simplifies the build process by combining the python-deps and runtime stages into a single stage.

Additional context

Image size before: 151MB Image size after: 80.7MB

How to download the PR for testing

Using GitHub CLI

  1. Clone this PR
  2. Run gh pr checkout 124 (Requires GitHub CLI)
  3. Follow the Advanced Installation Guides from the Wiki

Using regular GIT

  1. Fetch the PR git fetch origin pull/<PR_NUMBER>/head:<LOCAL_BRANCH_NAME> (e.g. git fetch origin pull/110/head:notif)
  2. Checkout the branch git checkout <LOCAL_BRANCH_NAME> (e.g. git checkout notif)
  3. Follow the Advanced Installation Guides from the Wiki