-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Issue building docker image #48
Comments
i also havin same problem... |
Got the solution: |
@mhmdahmed167 your solution works...how did you reached this solution?...where did you check? |
I basically just used basic debugging when I couldn’t understand the issue
after multiple attempts.
So I sat down and started back tracking every line in the Dockerfile and
verifying it.
After that it was just a matter if time before I realized the error that
was being made.
…On Mon, Oct 3, 2022 at 12:34 AM akashgoyal89 ***@***.***> wrote:
@mhmdahmed167 <https://github.com/mhmdahmed167> your solution works...how
did you reached this solution?...where did you check?
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A22YQ2CT4EZKVHB7OQY3D6DWBHPTRANCNFSM5YHK25XA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
solution: open dockerfile and replace make sure you have a build folder like in the |
@maulanaakbardj and @mhmdahmed167 : The solution works, but a following step fails with the below message; Error: Unsupported GitHub event - only supports push https://help.github.com/en/articles/events-that-trigger-workflows#push-event-push Does this mean that we can't build the docker image as part of the pull request? I.e., we can only build the docker image when pushing to main? UPDATE: In the dockerfile, changing: uses: mr-smithers-excellent/docker-build-push@v4 to uses: mr-smithers-excellent/docker-build-push@v6 This resolves the issue |
Hello,
I have folk your repo and i'm having this issue on building the docker image:
Step 3/5 : COPY ./build/libs/my-app-1.0-SNAPSHOT.jar /usr/app/
COPY failed: file not found in build context or excluded by .dockerignore: stat build/libs/my-app-1.0-SNAPSHOT.jar: file does not exist
Error: Command failed: docker build -f Dockerfile -t docker.io/***/myrepo/demo-app:master-27211ac .
Do you have an idea of the missing .jar file ? Thanks.
The text was updated successfully, but these errors were encountered: