kodekloudhub / devsecops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build Docker Image

khizarsheraz opened this issue · comments

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.