Skip to content

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

Closed
@Ni1esh-Yadav

Description

@Ni1esh-Yadav

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions