Open DolphaGo opened 2 years ago
docker build -t bbb . [+] Building 52.1s (12/13) => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 37B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/openjdk:11-jre-slim 1.1s => [internal] load build context 0.0s => => transferring context: 7.83kB 0.0s => [builder 1/8] FROM docker.io/library/openjdk:11-jre-slim@sha256:34744515bdde22d92a627555165e7 0.0s => CACHED [builder 2/8] COPY gradlew . 0.0s => CACHED [builder 3/8] COPY gradle gradle 0.0s => CACHED [builder 4/8] COPY build.gradle . 0.0s => CACHED [builder 5/8] COPY settings.gradle . 0.0s => CACHED [builder 6/8] COPY src src 0.0s => CACHED [builder 7/8] RUN chmod +x ./gradlew 0.0s => ERROR [builder 8/8] RUN ./gradlew bootJar 50.9s ------ > [builder 8/8] RUN ./gradlew bootJar: #12 0.594 Downloading https://services.gradle.org/distributions/gradle-6.8.2-bin.zip #12 1.528 ..........10%..........20%..........30%...........40%..........50%..........60%..........70%...........80%..........90%..........100% #12 6.719 #12 6.719 Welcome to Gradle 6.8.2! #12 6.719 #12 6.719 Here are the highlights of this release: #12 6.719 - Faster Kotlin DSL script compilation #12 6.719 - Vendor selection for Java toolchains #12 6.720 - Convenient execution of tasks in composite builds #12 6.720 - Consistent dependency resolution #12 6.720 #12 6.720 For more details see https://docs.gradle.org/6.8.2/release-notes.html #12 6.720 #12 7.092 Starting a Gradle Daemon (subsequent builds will be faster) #12 50.06 > Task :compileJava FAILED #12 50.07 #12 50.07 FAILURE: Build failed with an exception. #12 50.07 #12 50.07 * What went wrong: #12 50.07 Execution failed for task ':compileJava'. #12 50.07 > java.lang.NullPointerException (no error message) #12 50.07 #12 50.07 * Try: #12 50.07 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. #12 50.08 #12 50.08 * Get more help at https://help.gradle.org #12 50.08 #12 50.08 Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. #12 50.08 Use '--warning-mode all' to show the individual deprecation warnings. #12 50.08 See https://docs.gradle.org/6.8.2/userguide/command_line_interface.html#sec:command_line_warnings #12 50.08 #12 50.08 BUILD FAILED in 49s #12 50.08 1 actionable task: 1 executed ------ executor failed running [/bin/sh -c ./gradlew bootJar]: exit code: 1
자바 실행파일이므로 jre만 있으면 된다고 생각했는데 jdk로 바꿔주니, 성공
FROM openjdk:11-jdk-slim
jre만 쓰고 싶은데 흠;
상황
자바 실행파일이므로 jre만 있으면 된다고 생각했는데 jdk로 바꿔주니, 성공
jre만 쓰고 싶은데 흠;