반응형
Docker
-
Dockerfile 작성 시 주의할 점프로그래밍 2024. 6. 26. 16:17
이전 Dockerfile FROM openjdk:17-jdk-alpine as builderCOPY gradlew .COPY gradle gradleCOPY build.gradle .COPY settings.gradle .COPY src srcRUN chmod +x ./gradlewRUN ./gradlew bootJarFROM builder as ffmpegRUN apk updateRUN apk add --no-cache ffmpegFROM ffmpeg as executeCOPY build/libs/*.jar app.jarEXPOSE 8080ENTRYPOINT ["java", "-jar", "/app.jar"] 여기서 문제점은 COPY build/libs/*.jar app.jar 였다.as 문법을 통해서..