Skip to content

Commit

Permalink
Merge pull request #9 from neuefische/feat/docker-setup
Browse files Browse the repository at this point in the history
Feat/docker setup
  • Loading branch information
Pourya-Nejadensan authored Aug 19, 2024
2 parents 2c967eb + a188596 commit c44bae3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM --platform=linux/amd64 openjdk:21

EXPOSE 8080

ADD backend/target/app.jar app.jar

ENTRYPOINT ["java", "-jar", "app.jar"]
2 changes: 2 additions & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<java.version>21</java.version>
<sonar.organization>neuefische</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.projectName>neuefische_hh-java-24-3-teamproject-team-1_backend</sonar.projectName>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -60,6 +61,7 @@
</dependencies>

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

0 comments on commit c44bae3

Please sign in to comment.