ci: add Dockerfile and .dockerignore for containerisation

This commit is contained in:
2026-04-03 10:51:01 +08:00
parent 06210f22dc
commit 7c249ee4be
2 changed files with 14 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
delta-force-guide-server.iml
build/
.idea/
.gradle
+10
View File
@@ -0,0 +1,10 @@
FROM amazoncorretto:21 AS builder
WORKDIR /app
ADD . .
RUN chmod +x ./gradlew && \
./gradlew build -x test
FROM amazoncorretto:21-alpine AS runner
WORKDIR /app
COPY --from=builder /app/build/libs/delta-force-guide-server-1.0.0.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]