This commit is contained in:
unknown
2025-12-11 14:33:38 -08:00
parent 4c28360719
commit 6116217780
3 changed files with 5 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ LABEL org.opencontainers.image.title="ebook2audiobook" \
ARG DEVICE_TAG=cpu
ARG DOCKER_DEVICE_STR='{"name": "cpu", "os": "linux", "arch": "x86_64", "pyvenv": [3, 12], "tag": "cpu", "note": ""}'
ARG DOCKER_PROGRAMS_STR=cmake libgomp1 libfontconfig1 libsndfile1 curl ffmpeg nodejs espeak-ng sox tesseract-ocr
ARG DOCKER_PROGRAMS_STR=curl ffmpeg nodejs espeak-ng sox tesseract-ocr
ARG CALIBRE_INSTALLER_URL="https://download.calibre-ebook.com/linux-installer.sh"
ARG ISO3_LANG=eng
@@ -29,6 +29,7 @@ RUN apt-get update && \
gcc g++ make python3-dev pkg-config git wget bash xz-utils \
libegl1 libopengl0 libgl1 \
libxcb1 libx11-6 libxcb-cursor0 libxcb-render0 libxcb-shm0 libxcb-xfixes0 \
cmake freetype fontconfig libgomp1 libfontconfig1 libsndfile1 \
${DOCKER_PROGRAMS_STR} \
tesseract-ocr-${ISO3_LANG} || true && \
rm -rf /var/lib/apt/lists/*

View File

@@ -36,7 +36,7 @@ set "PYTHONUTF8=1"
set "PYTHONIOENCODING=utf-8"
set "CURRENT_ENV="
set "HOST_PROGRAMS=cmake rustup python calibre-normal ffmpeg nodejs espeak-ng sox tesseract"
set "DOCKER_PROGRAMS=cmake libgomp1 libfontconfig1 libsndfile1 curl ffmpeg nodejs espeak-ng sox tesseract-ocr" # tesseract-ocr-[lang] and calibre are hardcoded in Dockerfile
set "DOCKER_PROGRAMS=curl ffmpeg nodejs espeak-ng sox tesseract-ocr" # tesseract-ocr-[lang] and calibre are hardcoded in Dockerfile
set "DOCKER_CALIBRE_INSTALLER_URL=https://download.calibre-ebook.com/linux-installer.sh"
set "DOCKER_DEVICE_STR="
set "DOCKER_IMG_NAME=ebook2audiobook"

View File

@@ -36,7 +36,7 @@ APP_NAME="ebook2audiobook"
APP_VERSION=$(<"$SCRIPT_DIR/VERSION.txt")
OS_LANG=$(echo "${LANG:-en}" | cut -d_ -f1 | tr '[:upper:]' '[:lower:]')
HOST_PROGRAMS=("cmake" "curl" "pkg-config" "calibre" "ffmpeg" "nodejs" "espeak-ng" "cargo" "rust" "sox" "tesseract")
DOCKER_PROGRAMS=("cmake" "libgomp1" "libfontconfig1" "libsndfile1" "curl" "ffmpeg" "nodejs" "espeak-ng" "sox" "tesseract-ocr") # tesseract-ocr-[lang] and calibre are hardcoded in Dockerfile
DOCKER_PROGRAMS=("curl" "ffmpeg" "nodejs" "espeak-ng" "sox" "tesseract-ocr") # tesseract-ocr-[lang] and calibre are hardcoded in Dockerfile
DOCKER_DEVICE_STR=""
DOCKER_IMG_NAME="$APP_NAME"
CALIBRE_INSTALLER_URL="https://download.calibre-ebook.com/linux-installer.sh"
@@ -408,7 +408,7 @@ function install_programs {
PACK_MGR_OPTIONS="-y"
elif command -v apk &> /dev/null; then
if ! command -v un-get &>/dev/null; then
echo "Installing un-get plugin..."
echo "Installing un-get plugin..."
curl -L -o /tmp/un-get.plg https://raw.githubusercontent.com/ich777/un-get/master/un-get.plg
installplg /tmp/un-get.plg
rm -f /tmp/un-get.plg