mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-10 06:18:02 -05:00
...
This commit is contained in:
@@ -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/*
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user