fix: resolve stale class conflict in Docker build by adding clean and .dockerignore
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 23s

This commit is contained in:
jade
2026-07-24 10:20:00 +09:00
parent fc8c3da666
commit d562e35ad8
7 changed files with 34 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
FROM eclipse-temurin:21-jdk-alpine AS builder
FROM eclipse-temurin:21-jdk-alpine AS builder
WORKDIR /app
COPY gradlew .
COPY gradle gradle
@@ -7,7 +7,7 @@ COPY build.gradle settings.gradle ./
COPY dap-tool-core dap-tool-core
COPY dap-tool-other dap-tool-other
RUN chmod +x gradlew
RUN ./gradlew :dap-tool-other:build -x test
RUN ./gradlew clean :dap-tool-other:build -x test
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
@@ -16,3 +16,4 @@ ENV TZ=Asia/Seoul
COPY --from=builder /app/dap-tool-other/build/libs/*-SNAPSHOT.jar app.jar
EXPOSE 8084
ENTRYPOINT ["java", "-jar", "app.jar"]