Skip to content

Commit

Permalink
Merge pull request #11 from neuefische/docker
Browse files Browse the repository at this point in the history
Add Dockerfile and set final name in pom.xml
  • Loading branch information
josch87 authored Jun 5, 2024
2 parents 11e5108 + 9c2bf16 commit 2942910
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM --platform=linux/amd64 openjdk:22
EXPOSE 8080
ADD backend/target/RestaurantApp.jar RestaurantApp.jar
ENTRYPOINT ["java", "-jar", "RestaurantApp.jar"]
1 change: 1 addition & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</dependencies>

<build>
<finalName>RestaurantApp</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 2942910

Please sign in to comment.