Aardwolf-Social / aardwolf-social

Powering connected social communities with open software.
https://aardwolf.social
GNU Affero General Public License v3.0
485 stars 44 forks source link

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

Closed Dhruvnotfound closed 1 month ago

Dhruvnotfound commented 1 month ago

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 commented 1 month ago

Manual workflow runs approved.

BanjoFox commented 1 month ago

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

Dhruvnotfound commented 1 month ago

hey now the workflow is working correctly