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

Unable to build Docker Image #5

Open
khizarsheraz opened this issue Sep 18, 2023 · 0 comments
Open

Unable to build Docker Image #5

khizarsheraz opened this issue Sep 18, 2023 · 0 comments

Comments

@khizarsheraz
Copy link

Hello,

I’m facing issue, building image for devsecops course. Please find below error.

=> ERROR [3/3] COPY target/.jar /home/k8s-pipeline/app.jar 0.9s
[3/3] COPY target/
.jar /home/k8s-pipeline/app.jar:

Dockerfile:5
3 | ARG JAR_FILE=target/*.jar
4 | RUN addgroup -S pipeline && adduser -S k8s-pipeline -G pipeline
5 | >>> COPY ${JAR_FILE} /home/k8s-pipeline/app.jar
6 | USER k8s-pipeline
7 | ENTRYPOINT [“java”,“-jar”,“/home/k8s-pipeline/app.jar”]
ERROR: failed to solve: lstat /var/lib/docker/tmp/buildkit-mount3223575882/target: no such file or directory

i couldn't find target directory and jar file in this repository.

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

1 participant