Skip to content

Commit

Permalink
add dockerfile :(
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoMeireles55 committed Mar 11, 2024
1 parent 14479ee commit 0c74c6f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions participantes/leonardo-meireles/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#BUILD
FROM maven:3.8.3-openjdk-17-slim AS build
WORKDIR /usr/src/app
COPY . .
RUN mvn clean package -DskipTests

#RUN
FROM maven:3.8.3-openjdk-17-slim
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/target/rinha-backend-0.0.1-SNAPSHOT.jar app.jar
CMD ["java", "-jar", "app.jar"]

0 comments on commit 0c74c6f

Please sign in to comment.