diff --git a/Dockerfile b/Dockerfile index 4d812d42..e29ba685 100644 --- a/Dockerfile +++ b/Dockerfile @@ -116,4 +116,5 @@ RUN set -eux; \ EXPOSE 7860 -CMD ["python3", "app.py", "--script_mode", "full_docker"] \ No newline at end of file +ENTRYPOINT ["python3", "-u", "app.py"] +CMD ["--script_mode", "full_docker"] \ No newline at end of file diff --git a/ebook2audiobook.sh b/ebook2audiobook.sh index 98e06d34..f2269412 100755 --- a/ebook2audiobook.sh +++ b/ebook2audiobook.sh @@ -626,7 +626,7 @@ function check_docker { function install_python_packages { echo "[ebook2audiobook] Installing dependencies..." python3 -m pip cache purge > /dev/null 2>&1 - python3 -m pip install --upgrade pip pip setuptools wheel >nul 2>&1 + python3 -m pip install --upgrade pip setuptools wheel >nul 2>&1 python3 -m pip install --upgrade llvmlite numba --only-binary=:all: python3 -m pip install --upgrade --no-cache-dir -r "$SCRIPT_DIR/requirements.txt" || exit 1 python3 -m unidic download || exit 1