fix
This commit is contained in:
parent
8cddc05cbf
commit
443bdd7820
@ -3,13 +3,11 @@ WORKDIR /app
|
|||||||
|
|
||||||
# 将Gradle的配置文件复制到镜像中
|
# 将Gradle的配置文件复制到镜像中
|
||||||
COPY gradlew .
|
COPY gradlew .
|
||||||
COPY gradle gradle
|
|
||||||
COPY build.gradle .
|
COPY build.gradle .
|
||||||
COPY settings.gradle .
|
COPY settings.gradle .
|
||||||
|
|
||||||
COPY src src
|
COPY src src
|
||||||
# 构建应用
|
# 构建应用
|
||||||
RUN gradle bootJar
|
RUN ./gradlew bootJar
|
||||||
|
|
||||||
# 使用官方的Java运行时作为最终的运行环境
|
# 使用官方的Java运行时作为最终的运行环境
|
||||||
FROM openjdk:17-jdk-slim
|
FROM openjdk:17-jdk-slim
|
||||||
|
Loading…
Reference in New Issue
Block a user