Set up Gradle Kotlin project with Ktor, Docker, and CI pipeline

This commit is contained in:
2026-02-11 15:17:05 +01:00
commit b1096d366a
17 changed files with 539 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Stage 1: Build
FROM eclipse-temurin:25-jdk-alpine AS build
WORKDIR /app
COPY . .
RUN chmod +x gradlew
RUN ./gradlew shadowJar --no-daemon
# Stage 2: Run
FROM eclipse-temurin:25-jre-alpine
WORKDIR /app
# Wir kopieren das fertige Jar aus der Build-Stage
COPY --from=build /app/build/libs/*-all.jar app.jar
EXPOSE 8081
ENTRYPOINT ["java", "-jar", "app.jar"]