Files
ax_hub_mcp_tool/Dockerfile
jade d562e35ad8
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 23s
fix: resolve stale class conflict in Docker build by adding clean and .dockerignore
2026-07-24 10:20:00 +09:00

32 lines
718 B
Docker
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 1. ??<3F><><EFBFBD>???<3F>꼍 (JDK 21)
FROM eclipse-temurin:21-jdk-alpine AS builder
WORKDIR /app
# Gradle ??<3F>띁?? ???<3F><> 蹂듭<E8B982>?
COPY gradlew .
COPY gradle gradle
COPY build.gradle settings.gradle ./
COPY src src
# 沅뚰<E6B285>??<3F>€??<3F>???<3F><><EFBFBD>?(???<3F><>????<3F>쇅)
RUN chmod +x gradlew
RUN ./gradlew clean build -x test
# 2. ??<3F>뻾 ??<3F>꼍 (JRE 21)
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
# ???꾩<>???<3F>젙 (??<3F>뎅 ??<3F>컙)
RUN apk add --no-cache tzdata
ENV TZ=Asia/Seoul
# ??<3F><><EFBFBD>??JAR ???<3F><> 蹂듭<E8B982>?
COPY --from=builder /app/build/libs/*.jar app.jar
# 湲곕???????몄텧
EXPOSE 8081
# ?<3F>⑦???<3F><>???<3F>뻾 ??JAR ??<3F>
ENTRYPOINT ["java", "-jar", "app.jar"]