miyouzi / aniGamerPlus

巴哈姆特動畫瘋自動下載工具,支援命令行
GNU General Public License v3.0
687 stars 95 forks source link

buid: improve docker usage #200

Closed JacobLinCool closed 2 years ago

JacobLinCool commented 2 years ago

The built docker image (jacoblincool/anigamerplus) has been tested on arm64, amd64, and armhf.

Users can simply use the following command to use it as an CLI tool:

docker run --rm -v "$(pwd):/app/bangumi" jacoblincool/anigamerplus -s 31051 -r 360 -m all -t 6

Built with docker buildx build -t jacoblincool/anigamerplus --platform linux/amd64,linux/arm64,linux/arm/v7 --push .

TonyPepeBear commented 2 years ago

See #201

JacobLinCool commented 2 years ago

After some discussions in #201 (thanks @TonyPepeBear), I removed the part of port change. (Maybe I will open a new issue about it later.)

The main goals of this PR are:

  1. Support a multi-arch friendly image.
  2. Reduce the image size.
  3. Provide a better CLI UX when using docker.
TonyPepeBear commented 2 years ago

@miyouzi 我覺得這個 pr 沒問題了