Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix Docker Builds #334] changed the dockerfile path in docker.yaml workflow #337

Merged
merged 9 commits into from
Oct 12, 2024

Conversation

Dhruvnotfound
Copy link
Contributor

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

@BanjoFox
Copy link
Collaborator

Manual workflow runs approved.

@BanjoFox
Copy link
Collaborator

Go ahead and make the appropriate changes to get the CI working then I will happily add the hacktober-approved.

@Dhruvnotfound
Copy link
Contributor Author

hey now the workflow is working correctly

@BanjoFox BanjoFox merged commit 8104893 into Aardwolf-Social:main Oct 12, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants