Skip to content

Commit

Permalink
Correcciones: Dockerfile attach intellij
Browse files Browse the repository at this point in the history
- Intellij no estaba detectando el puerto correctamente. Me basé el ejemplo de la documentación de docker: https://docs.docker.com/guides/java/develop/
  • Loading branch information
nmarulo committed Oct 5, 2024
1 parent f3445c0 commit e005fcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit e005fcb

Please sign in to comment.