From d7470a2d86b3527496379adb86c6a2df0721e6c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 4 Jun 2023 16:19:43 +0200 Subject: [PATCH] feat: :sparkles: add Dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8215605 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM maven:3.8.2-jdk-11 AS build +COPY src /home/app/src +COPY pom.xml /home/app/pom.xml +RUN mvn -B compile assembly:single --file /home/app/pom.xml + +FROM openjdk:11-jre-slim +COPY --from=build /home/app/target/*.jar /usr/local/lib/mock.jar +ENV MOCK_PORT=3000 +EXPOSE 3000 +ENTRYPOINT ["java","-jar","/usr/local/lib/mock.jar"]