Added move registration and validation

This commit is contained in:
2025-12-12 16:45:12 +01:00
parent 47e812d710
commit f457911f3b
17 changed files with 269 additions and 45 deletions

View File

@@ -2,20 +2,26 @@
FROM gradle:9.2-jdk21 AS build
WORKDIR /app
# Copy only build scripts first
COPY settings.gradle.kts build.gradle.kts ./
COPY gradle.properties* ./
COPY gradle ./gradle
# Warm dependency cache
RUN gradle build -x test --no-daemon || true
# Copy source last
COPY src ./src
RUN gradle clean bootJar --no-daemon
# Build the jar
RUN gradle bootJar --no-daemon
# -------- Runtime --------
FROM eclipse-temurin:21-jdk-alpine
EXPOSE 8080
WORKDIR /app
COPY --from=build /app/build/libs/*.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]