[BUG] : Need to update docker file as docker build is failing for higher versions of this project #820

Open
opened 2026-01-29 16:54:12 +00:00 by claunia · 0 comments
Owner

Originally created by @Ni1esh-Yadav on GitHub (Jan 29, 2025).

Description:

The current Dockerfile needs an update as the Docker build process is failing due to outdated dependencies and/or configuration issues.

Steps to Reproduce:

  1. Clone the repository:
    git clone https://github.com/CCExtractor/ccextractor.git
    cd ccextractor/docker
    
  2. Build the Docker image:
    docker build -t ccextractor .
    
  3. The build fails with errors

ERROR [builder 1/10] RUN apk add --no-cache --update git curl gcc cmake glew glfw tesseract-ocr-dev leptonica-dev clang-dev llvm-dev make pkg 2)=> ERROR [builder 7/8] RUN cd /root/ccextractor/linux && ./pre-build.sh && ./build 0.5s


[builder 7/8] RUN cd /root/ccextractor/linux && ./pre-build.sh && ./build:
0.407 /bin/sh: cd: line 0: can't cd to /root/ccextractor/linux: No such file or directory


dockerfile:19
17 | RUN git clone https://github.com/CCExtractor/ccextractor.git
18 | RUN export LIB_CLANG_PATH=$(find / -name 'libclang*.so*' 2>/dev/null | grep -v 'No such file' | head -n 1 | xargs dirname)
19 | >>> RUN cd /root/ccextractor/linux && ./pre-build.sh && ./build
20 |
21 | # Copy the ccextractor binary
ERROR: failed to solve: process "/bin/sh -c cd /root/ccextractor/linux && ./pre-build.sh && ./build" did not complete successfully: exit code: 2]

Expected Behavior:

The Docker image should build successfully without errors.

Actual Behavior:

The build process fails due to outdated dependencies and/or broken installation steps in the Dockerfile.

Suggested Fix:

  • Update the base image to a more recent version.
  • Ensure all dependencies install correctly.
  • Fix any broken commands in the Dockerfile.
  • Test the build on different environments (Linux, Windows WSL, Mac).

System Information:

  • OS: (e.g., Ubuntu 22.04, Windows 11 WSL2, macOS)
Originally created by @Ni1esh-Yadav on GitHub (Jan 29, 2025). ### Description: The current Dockerfile needs an update as the Docker build process is failing due to outdated dependencies and/or configuration issues. ### Steps to Reproduce: 1. Clone the repository: ```sh git clone https://github.com/CCExtractor/ccextractor.git cd ccextractor/docker ``` 2. Build the Docker image: ```sh docker build -t ccextractor . ``` 3. The build fails with errors > ERROR [builder 1/10] RUN apk add --no-cache --update git curl gcc cmake glew glfw tesseract-ocr-dev leptonica-dev clang-dev llvm-dev make pkg 2)=> ERROR [builder 7/8] RUN cd /root/ccextractor/linux && ./pre-build.sh && ./build 0.5s ------ > [builder 7/8] RUN cd /root/ccextractor/linux && ./pre-build.sh && ./build: 0.407 /bin/sh: cd: line 0: can't cd to /root/ccextractor/linux: No such file or directory ------ > dockerfile:19 17 | RUN git clone https://github.com/CCExtractor/ccextractor.git 18 | RUN export LIB_CLANG_PATH=$(find / -name 'libclang*.so*' 2>/dev/null | grep -v 'No such file' | head -n 1 | xargs dirname) 19 | >>> RUN cd /root/ccextractor/linux && ./pre-build.sh && ./build 20 | 21 | # Copy the ccextractor binary ERROR: failed to solve: process "/bin/sh -c cd /root/ccextractor/linux && ./pre-build.sh && ./build" did not complete successfully: exit code: 2] ### Expected Behavior: The Docker image should build successfully without errors. ### Actual Behavior: The build process fails due to outdated dependencies and/or broken installation steps in the Dockerfile. ### Suggested Fix: - Update the base image to a more recent version. - Ensure all dependencies install correctly. - Fix any broken commands in the Dockerfile. - Test the build on different environments (Linux, Windows WSL, Mac). ### System Information: - OS: (e.g., Ubuntu 22.04, Windows 11 WSL2, macOS)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#820