<reponame>apm-learning/splunk-otel-java<filename>smoke-tests/profiling-base-petclinic/linux/Dockerfile
# Dockerfile for the application under test
# Builds petclinic-rest using the specified JDK version (minimum is 8 for JFR)
ARG jdkVersion=8

FROM adoptopenjdk:${jdkVersion}

RUN apt update && apt install -y git
RUN git clone https://github.com/spring-petclinic/spring-petclinic-rest.git /src

WORKDIR /src
RUN ./mvnw -Dmaven.test.skip=true package

RUN mkdir /app && cp /src/target/spring-petclinic-rest*.jar /app/spring-petclinic-rest.jar
WORKDIR /app