Added move registration and validation
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user