From 443bdd7820c07fd264959b01f70a9faf4f87958b Mon Sep 17 00:00:00 2001 From: whz <303054730@qq.com> Date: Tue, 4 Jun 2024 08:58:29 +0800 Subject: [PATCH] fix --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f44d4de..028ba31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,11 @@ WORKDIR /app # 将Gradle的配置文件复制到镜像中 COPY gradlew . -COPY gradle gradle COPY build.gradle . COPY settings.gradle . - COPY src src # 构建应用 -RUN gradle bootJar +RUN ./gradlew bootJar # 使用官方的Java运行时作为最终的运行环境 FROM openjdk:17-jdk-slim