ARG JDK_BASE_IMAGE
FROM ${JDK_BASE_IMAGE}

ARG PROJECT_VERSION
ENV PROJECT_VERSION ${PROJECT_VERSION}
WORKDIR /root
COPY target/spring-ci-advanced-$PROJECT_VERSION.jar spring-ci-advanced.jar
ENTRYPOINT ["java","-Djava.security.egd=file:///dev/urandom","-jar", "/root/spring-ci-advanced.jar"]
CMD ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9013","--spring.profiles.active=native,dev"]
