Github Actions - Docker - EC2 무중단 배포하기
·
CI-CD
□ Dockerfile# 1. Gradle을 이용해 애플리케이션 빌드FROM gradle:8.12-jdk17 AS builderWORKDIR /appCOPY . .RUN gradle build --no-daemon# 2. 실행 환경FROM openjdk:17-slimWORKDIR /appENV DB_USERNAME=${DB_USERNAME}ENV DB_PASSWORD=${DB_PASSWORD}ENV jwt_secret_key=${jwt_secret_key}ENV origin_ip=${origin_ip}ENV aes_secret_key=${aes_secret_key}COPY --from=builder /app/build/libs/*.jar app.jarENTRYPOINT ["java", "-jar", "a..