You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
time="2023-04-10T17:21:20+08:00" level=error msg="Can't add file /home/*****/target/springboot_for_test-0.0.1-SNAPSHOT.jar to tar: io: read/write on closed pipe"
time="2023-04-10T17:21:20+08:00" level=error msg="Can't close tar writer: io: read/write on closed pipe"
--- PASS: TestDockerbuild (0.08s)
PASS
here is the Dockerfile
FROM openjdk:8-jre
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ADD ./target/springboot_for_test-0.0.1-SNAPSHOT.jar /app/
CMD ["java", "-Xmx200m", "-jar", "/app/springboot_for_test-0.0.1-SNAPSHOT.jar"]
EXPOSE 8080
I make sure all the path and uri is correct
If i put the Dockerfile in the project contextDir and delete “Remote” , that will build the docker image successfully.
I would greatly appreciate it if you could point out my mistake
The text was updated successfully, but these errors were encountered:
this is my code demo
and here is the output :
here is the Dockerfile
I make sure all the path and uri is correct
If i put the Dockerfile in the project contextDir and delete “Remote” , that will build the docker image successfully.
I would greatly appreciate it if you could point out my mistake
The text was updated successfully, but these errors were encountered: