Description
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:
- Clone the repository:
git clone https://github.com/CCExtractor/ccextractor.git cd ccextractor/docker
- Build the Docker image:
docker build -t ccextractor .
- 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)