4 Commits

Author SHA1 Message Date
Antoine Aflalo
6b92336ba1 fix(docker): be sure we have the encoder installed in the right user folder 2025-09-10 09:00:35 -04:00
Antoine Aflalo
a6ad1dada3 fix(release): fix not having archive in the release 2025-09-10 08:49:50 -04:00
Antoine Aflalo
17fe01f27c fix(docker): remove unnecessary volume declaration and clean up bashrc setup 2025-09-09 22:58:24 -04:00
Antoine Aflalo
4fa3014d80 fix(docker): when we set the volume
To be sure we have the cache downloaded
2025-09-09 22:55:27 -04:00
2 changed files with 7 additions and 8 deletions

View File

@@ -5,8 +5,6 @@ release:
github:
owner: belphemur
name: CBZOptimizer
ids:
- cbzoptimizer
archives:
- ids:
- cbzoptimizer

View File

@@ -18,14 +18,12 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--ingroup users \
--disabled-password \
"${USER}" && \
apt-get purge -y --auto-remove adduser && \
rm -rf /var/lib/apt/lists/*
apt-get purge -y --auto-remove adduser
COPY ${TARGETPLATFORM}/CBZOptimizer ${APP_PATH}
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
--mount=type=bind,source=${TARGETPLATFORM},target=/tmp/target \
apt-get update && \
apt-get full-upgrade -y && \
apt-get install -y --no-install-recommends \
@@ -33,11 +31,14 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
bash \
ca-certificates \
bash-completion && \
rm -rf /var/lib/apt/lists/* && \
/tmp/target/encoder-setup && \
chmod +x ${APP_PATH} && \
${APP_PATH} completion bash > /etc/bash_completion.d/CBZOptimizer.bash
VOLUME ${CONFIG_FOLDER}
USER ${USER}
# Need to run as the user to have the right config folder created
RUN --mount=type=bind,source=${TARGETPLATFORM},target=/tmp/target \
/tmp/target/encoder-setup
ENTRYPOINT ["/usr/local/bin/CBZOptimizer"]