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

Dockerfile failed to build #1761

Closed
nikgreg99 opened this issue Mar 2, 2024 · 1 comment
Closed

Dockerfile failed to build #1761

nikgreg99 opened this issue Mar 2, 2024 · 1 comment

Comments

@nikgreg99
Copy link

I have tried to buil the dockerfile on own and I obtain this error:

=> [2/4] RUN useradd -ms /bin/bash webgoat && chgrp -R 0 /home/webgoat && chmod -R g=u /home/webgoat 0.9s
=> ERROR [3/4] COPY --chown=webgoat target/webgoat-*.jar /home/webgoat/webgoat.jar 0.0s

[3/4] COPY --chown=webgoat target/webgoat-*.jar /home/webgoat/webgoat.jar:


Dockerfile:12

10 | USER webgoat
11 |
12 | >>> COPY --chown=webgoat target/webgoat-*.jar /home/webgoat/webgoat.jar
13 |
14 | EXPOSE 8080

ERROR: failed to solve: lstat /var/lib/docker/tmp/buildkit-mount1803861932/target: no such file or directory

I am using a Win 11 machine

@zubcevic
Copy link
Collaborator

Did you do a mvn clean install before the docker build?

@zubcevic zubcevic closed this as completed Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants