fix(docker): fix issue with docker image not downloading the right webp converter

This commit is contained in:
Antoine Aflalo
2025-09-09 20:36:42 -04:00
parent 7ad0256b46
commit b5a894deba

View File

@@ -1,28 +1,28 @@
FROM alpine:latest FROM debian:slim
LABEL authors="Belphemur" LABEL authors="Belphemur"
ARG APP_PATH=/usr/local/bin/CBZOptimizer ARG APP_PATH=/usr/local/bin/CBZOptimizer
ENV USER=abc ENV USER=abc
ENV CONFIG_FOLDER=/config ENV CONFIG_FOLDER=/config
ENV PUID=99 ENV PUID=99
RUN mkdir -p "${CONFIG_FOLDER}" && \ RUN addgroup --system users && \
adduser \ adduser \
-S \ --system \
-H \ --home "${CONFIG_FOLDER}" \
-h "${CONFIG_FOLDER}" \ --uid "${PUID}" \
-G "users" \ --ingroup users \
-u "${PUID}" \ --disabled-password \
"${USER}" && \ "${USER}"
chown ${PUID}:users "${CONFIG_FOLDER}"
COPY CBZOptimizer ${APP_PATH} COPY CBZOptimizer ${APP_PATH}
RUN apk add --no-cache \ RUN apt-get update && apt-get install -y --no-install-recommends \
inotify-tools \ inotify-tools \
bash \ bash \
bash-completion && \ bash-completion && \
rm -rf /var/lib/apt/lists/* && \
chmod +x ${APP_PATH} && \ chmod +x ${APP_PATH} && \
${APP_PATH} completion bash > /etc/bash_completion.d/CBZOptimizer ${APP_PATH} completion bash > /etc/bash_completion.d/CBZOptimizer.bash
VOLUME ${CONFIG_FOLDER} VOLUME ${CONFIG_FOLDER}
USER ${USER} USER ${USER}