added docker support
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
FROM alpine as mvn
|
||||||
|
|
||||||
|
RUN apk add maven
|
||||||
|
|
||||||
|
|
||||||
|
FROM mvn as builder
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
ADD . .
|
||||||
|
RUN mvn package
|
||||||
|
|
||||||
|
|
||||||
|
FROM eclipse-temurin:17-jdk-alpine
|
||||||
|
|
||||||
|
WORKDIR /backend
|
||||||
|
COPY --from=builder /build/target/swa-jodel-backend.jar .
|
||||||
|
|
||||||
|
ENTRYPOINT ["java","-jar","/backend/swa-jodel-backend.jar"]
|
||||||
3
pom.xml
3
pom.xml
@@ -14,7 +14,7 @@
|
|||||||
<name>SWA-Jodel</name>
|
<name>SWA-Jodel</name>
|
||||||
<description>SWA-Jodel</description>
|
<description>SWA-Jodel</description>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>22</java.version>
|
<java.version>21</java.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<finalName>swa-jodel-backend</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user