ERROR: failed to solve: failed to compute cache key: failed to calculate checksum : "/document-processor": not found #54

Closed
opened 2026-02-15 16:29:39 -05:00 by yindo · 7 comments
Owner

Originally created by @JairajGaur on GitHub (Dec 21, 2023).

Hi,
I'm trying to do docker build using the below command. However, this is generating the error during coping document-processor folder everytime. Could you please check and confirm if this is known issue and what's the resolution. I tried multiple solution but nothing worked for me.

Command : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker build --pull --rm -f "docker\Dockerfile" -t vectoradmin:latest "docker"


Error : --------------------
75 |
76 | # Copy the document-processor
77 | >>> COPY ./document-processor/ ./document-processor/
78 |
79 | # Install document-processor dependencies

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 5627e5d8-6272-4427-9297-c31a310b5758::5oax43ihn5e9096cd6sgw8e1w: "/document-processor": not found

Branch - master

Originally created by @JairajGaur on GitHub (Dec 21, 2023). Hi, I'm trying to do docker build using the below command. However, this is generating the error during coping document-processor folder everytime. Could you please check and confirm if this is known issue and what's the resolution. I tried multiple solution but nothing worked for me. Command : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker build --pull --rm -f "docker\Dockerfile" -t vectoradmin:latest "docker" ----------------------------------------------------- Error : -------------------- 75 | 76 | # Copy the document-processor 77 | >>> COPY ./document-processor/ ./document-processor/ 78 | 79 | # Install document-processor dependencies -------------------- ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 5627e5d8-6272-4427-9297-c31a310b5758::5oax43ihn5e9096cd6sgw8e1w: "/document-processor": not found ----------------------------------------------------- Branch - master
yindo added the Docker label 2026-02-15 16:29:39 -05:00
yindo closed this issue 2026-02-15 16:29:39 -05:00
Author
Owner

@timothycarambat commented on GitHub (Dec 21, 2023):

Can you try running docker build from within the docker/ folder instead of outside of it? The Docker context is not root of the repo and is instead from within the docker folder.

@timothycarambat commented on GitHub (Dec 21, 2023): Can you try running docker build from within the `docker/` folder instead of outside of it? The Docker context is not root of the repo and is instead from within the docker folder.
Author
Owner

@JairajGaur commented on GitHub (Dec 21, 2023):

It's working if I run below commands within the docker/.
docker-compose up -d --build postgres
docker-compose up -d --build vector-admin

But issue wasn't an issue few days back as I was able to build using Dockerfile directly. This started happening since yesterday.

@JairajGaur commented on GitHub (Dec 21, 2023): It's working if I run below commands within the docker/. docker-compose up -d --build postgres docker-compose up -d --build vector-admin But issue wasn't an issue few days back as I was able to build using Dockerfile directly. This started happening since yesterday.
Author
Owner

@timothycarambat commented on GitHub (Dec 21, 2023):

I just did a rebuild using docker-compose up -d --build vector-admin and did not crash. Im not sure how the document-processor folder is missing on your build, since that is typically the case of a COPY not working. The folder is there for sure?

@timothycarambat commented on GitHub (Dec 21, 2023): I just did a rebuild using `docker-compose up -d --build vector-admin` and did not crash. Im not sure how the document-processor folder is missing on your build, since that is typically the case of a `COPY` not working. The folder is there for sure?
Author
Owner

@timothycarambat commented on GitHub (Dec 21, 2023):

To add onto this, we also have automated docker builds that are pushed to Docker Hub which are also not failing

@timothycarambat commented on GitHub (Dec 21, 2023): To add onto this, we also have automated docker builds that are pushed to [Docker Hub](https://hub.docker.com/r/mintplexlabs/vectoradmin) which are also not failing
Author
Owner

@JairajGaur commented on GitHub (Dec 21, 2023):

I just did a rebuild using docker-compose up -d --build vector-admin and did not crash. Im not sure how the document-processor folder is missing on your build, since that is typically the case of a COPY not working. The folder is there for sure?

Yes, the folder is there for sure. The other way of running the docker for vector-admin and Postgres are working fine. Just one more extra point to add regarding my local setup. I'm using windows OS for my setup.

@JairajGaur commented on GitHub (Dec 21, 2023): > I just did a rebuild using `docker-compose up -d --build vector-admin` and did not crash. Im not sure how the document-processor folder is missing on your build, since that is typically the case of a `COPY` not working. The folder is there for sure? Yes, the folder is there for sure. The other way of running the docker for vector-admin and Postgres are working fine. Just one more extra point to add regarding my local setup. I'm using windows OS for my setup.
Author
Owner

@rawpixel-vincent commented on GitHub (Dec 31, 2023):

I had the same issue to build the image from the Dockerfile
you need to run with the context at the root of the repo

From the root of the repository:

C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker build . --pull --rm -f "docker\Dockerfile" -t vectoradmin:latest "docker"

was running on linux so not entirely sure about the powershell syntax above

what worked for me

docker build . -f ./docker/Dockerfile

full script

git clone https://github.com/Mintplex-Labs/vector-admin.git
cd vector-admin
cp frontend/.env.example frontend/.env.production
# edit frontend/.env.production as needed for your environment
docker build . -f ./docker/Dockerfile --tag vectoradmin:build-xx
@rawpixel-vincent commented on GitHub (Dec 31, 2023): I had the same issue to build the image from the Dockerfile you need to run with the context at the root of the repo From the root of the repository: ``` C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command docker build . --pull --rm -f "docker\Dockerfile" -t vectoradmin:latest "docker" ``` was running on linux so not entirely sure about the powershell syntax above what worked for me ``` docker build . -f ./docker/Dockerfile ``` full script ``` git clone https://github.com/Mintplex-Labs/vector-admin.git cd vector-admin cp frontend/.env.example frontend/.env.production # edit frontend/.env.production as needed for your environment docker build . -f ./docker/Dockerfile --tag vectoradmin:build-xx ```
Author
Owner

@timothycarambat commented on GitHub (Dec 31, 2023):

Correct, referring to the docker-compose you can see the context is ../ when inside of the docker folder. So if not using the docker-compose in the repo you need to target the DockerFile from the root directory. Apologies for the confusion but then the paths during copying will be correct in the DockerFile.

@timothycarambat commented on GitHub (Dec 31, 2023): Correct, referring to the docker-compose you can see the context is `../` when inside of the `docker` folder. So if not using the docker-compose in the repo you need to target the DockerFile from the root directory. Apologies for the confusion but then the paths during copying will be correct in the DockerFile.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/vector-admin#54