Skip to content

Commit

Permalink
feat: ✨ add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Jun 4, 2023
1 parent cd8bc8e commit d7470a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit d7470a2

Please sign in to comment.