Dec 25 07:13:07 PM Dockerfile:22
Dec 25 07:13:07 PM --------------------
Dec 25 07:13:07 PM 20 | #
Dec 25 07:13:07 PM 21 | FROM openjdk:17-jdk-slim
Dec 25 07:13:07 PM 22 | >>> COPY target/WG-0.0.1-SNAPSHOT.jar /app.jar
Dec 25 07:13:07 PM 23 | # ENV PORT=8080
Dec 25 07:13:07 PM 24 | EXPOSE 8080
Dec 25 07:13:07 PM --------------------
Dec 25 07:13:07 PM error: failed to solve: failed to compute cache key: failed to calculate checksum of ref a2cxwlqkz1k56ygqnda9t8h7b::kt399lmemxm40dxcgigj6tjsq: failed to walk /home/user/.local/tmp/buildkit-mount789990549/target: lstat /home/user/.local/tmp/buildkit-mount789990549/target: no such file or directory
I created in the root of the proyect’s directory, I used netbeans 14 and created the Dockfile but, local it worked and with render couldn’t find the file o directory
Can somebody help me please?, i only find one answer in the comunity but im new and i need to somebody tell me step by step the error >>> COPY target/WG-0.0.1-SNAPSHOT.jar /app.jar and how to fix it
Thanks
The solution was that gitignore dont save my target/WG-0.0.1-SNAPSHOT.jar in my repository , that was the problem, in my case i was in the main proyect and use the code:
git add C:\Users\Compumar\Documents\YoProgramo3ed\BackEnd\target\WG-0.0.1-SNAPSHOT.jar -f
then with Render cloud it worked, no more error en >>> COPY target/WG-0.0.1-SNAPSHOT.jar /app.jar, but appeared another error that is :
Dec 26 09:54:50 PM 2022-12-27 00:54:50.158 INFO 1 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ‘’
Dec 26 09:54:50 PM 2022-12-27 00:54:50.556 INFO 1 — [ main] com.portfolio.WG.WgApplication : Started WgApplication in 204.799 seconds (JVM running for 220.335)
Dec 26 09:56:52 PM 2022-12-27 00:56:52.859 INFO 1 — [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit ‘default’
Dec 26 09:56:52 PM 2022-12-27 00:56:52.961 INFO 1 — [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated…
Dec 26 09:56:56 PM 2022-12-27 00:56:56.647 INFO 1 — [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
It start and shutdown for Closing JPA EntityManagerFactory for persistence unit ‘default’
If somebody can help me it will be preciated
Thanks