1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 15:29:34 +01:00
This commit is contained in:
Janosch 2026-03-27 11:13:16 +01:00
parent 6a672705c2
commit e897f41a32
12 changed files with 129 additions and 31 deletions

19
backend/Dockerfile Normal file
View file

@ -0,0 +1,19 @@
# Multi-stage Build für das Effigenix-Backend.
# Genutzt vom E2E-Test-Stack (test-automation/docker-compose.e2e.yml).
FROM maven:3.9-eclipse-temurin-21-alpine AS build
WORKDIR /app
# Dependency-Layer cachen
COPY pom.xml .
RUN mvn dependency:go-offline -q
# Source kompilieren und paketieren (Tests überspringen)
COPY src ./src
RUN mvn package -DskipTests -q
# Schlankes Runtime-Image
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]