Optimize docker image (#1160)

* Updated workflow to checkout

* Added kindlegen ln -s instruction
This commit is contained in:
José Cerezo authored and GitHub committed 2025-11-12 09:45:49 -08:00
1 parent 2394aa3747
commit 3a3ee15cba
2 files changed
+5

No files matched your search

+4
View File
@@ -20,6 +20,9 @@ jobs:
build_and_publish_base_image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@@ -54,6 +57,7 @@ jobs:
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
context: .
push: true
tags: |
${{ steps.meta.outputs.tags }}
+1
View File
@@ -59,6 +59,7 @@ RUN \
ln -s /opt/kcc/kcc-c2e.py /usr/local/bin/c2e && \
ln -s /opt/kcc/kcc-c2p.py /usr/local/bin/c2p && \
ln -s /opt/kcc/entrypoint.sh /usr/local/bin/entrypoint && \
ln -s /opt/kcc/kindlegen/kindlegen /usr/local/bin/kindlegen && \
cat /opt/kcc/kindlecomicconverter/__init__.py | grep version | awk '{print $3}' | sed "s/'//g" > /IMAGE_VERSION
LABEL com.kcc.name="Kindle Comic Converter" \