Skip to content

Commit

Permalink
Fix Dockerfile adding mven step to build image and remove target folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LauroSilveira committed Nov 15, 2023
1 parent 1f10b36 commit 310d8f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARG DATABASE_TEST

## work directory by default
WORKDIR /alura-flix-api
## copy all files from target and put in to work directory
COPY --from=build target/alura-flix-api-0.0.1-SNAPSHOT.jar alura-flix-api.jar
COPY --from=build target/*.jar alura-flix-api.jar
EXPOSE 8080

ENTRYPOINT ["java", "-jar", "alura-flix-api.jar"]

0 comments on commit 310d8f9

Please sign in to comment.