FROM maven:3.5.3-jdk-10-slim as maven
WORKDIR /ktor
COPY pom.xml pom.xml
COPY src src
RUN mvn clean package -q

FROM openjdk:10-jre-slim
WORKDIR /ktor
COPY --from=maven /ktor/target/tech-empower-framework-benchmark-1.0-SNAPSHOT-cio-bundle.jar app.jar
CMD ["java", "-jar", "app.jar"]
