mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 15:29:34 +01:00
phase 1
This commit is contained in:
parent
6a672705c2
commit
e897f41a32
12 changed files with 129 additions and 31 deletions
19
backend/Dockerfile
Normal file
19
backend/Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue