[Fix Docker Builds #334] changed the dockerfile path in docker.yaml workflow #337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description: This PR addresses a issues that were preventing the Docker image from building successfully.
before: The build command was not specifying the correct context folder where the Dockerfile and related scripts are located giving error.
ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
after: Updated the Docker build command to set the context correctly to the docker directory.
new issue found:
After addressing the above issues, a new error has arisen related to the entry point script. During the build process, Docker throws an error indicating that docker-entrypoint.sh cannot be found.
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref f45fc31b-ef18-4a5f-be2b-7f841a08fbe4::1voajrdg166rvuhs16k60a5b1: "/docker-entrypoint.sh": not found Error: Process completed with exit code 1.
The error message indicates that the Docker build process is unable to find the docker-entrypoint.sh file. Based on the Dockerfile content and the directory structure, it appears that the docker-entrypoint.sh file is in the same directory as the Dockerfile. However, the COPY instruction in the Dockerfile is trying to copy it from the root directory.
would u like me to update the dockerfile with correct path as well? also please add the hacktoberfest-accepted tag if possible