From e005fcb3d7eb871ec2533f2cb624cf8e8ed0cd92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Marulanda=20P?= Date: Sat, 5 Oct 2024 21:37:50 +0200 Subject: [PATCH] =?UTF-8?q?Correcciones:=20Dockerfile=20attach=20intellij?= =?UTF-8?q?=20-=20Intellij=20no=20estaba=20detectando=20el=20puerto=20corr?= =?UTF-8?q?ectamente.=20Me=20bas=C3=A9=20el=20ejemplo=20de=20la=20document?= =?UTF-8?q?aci=C3=B3n=20de=20docker:=20https://docs.docker.com/guides/java?= =?UTF-8?q?/develop/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 002a9fb..f2b3800 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,8 @@ RUN cp -r /build/target/extracted/spring-boot-loader/. ./ RUN cp -r /build/target/extracted/snapshot-dependencies/. ./ RUN cp -r /build/target/extracted/application/. ./ EXPOSE 8080 -CMD [ "java", "-Dspring.profiles.active=dockerdev", "-Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005'", "org.springframework.boot.loader.launch.WarLauncher" ] +ENV JAVA_TOOL_OPTIONS -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 +CMD [ "java", "-Dspring.profiles.active=dockerdev", "org.springframework.boot.loader.launch.WarLauncher" ] FROM eclipse-temurin:21-jre-jammy AS final # https://docs.docker.com/go/dockerfile-user-best-practices/