Skip to content

Commit 2014c00

Browse files
authored
Change base image and update JAR file retrieval
Updated base image and modified build process to download the JAR file directly from GitHub releases.
1 parent b319ec2 commit 2014c00

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
FROM gradle:9.5-jdk25 AS build
1+
FROM eclipse-temurin:21-jre
22
WORKDIR /app
3-
COPY . .
4-
RUN gradle shadowJar --no-daemon
5-
6-
FROM eclipse-temurin:25-jre
7-
WORKDIR /app
8-
COPY --from=build /app/build/libs/ModMail.jar .
9-
CMD ["java", "-jar", "ModMail.jar"]
3+
ARG RELEASE_VERSION
4+
ADD https://github.com/APDevTeam/ModMail/releases/download/${RELEASE_VERSION}/ModMail_${RELEASE_VERSION}.jar ModMail.jar
5+
CMD ["java", "-jar", "ModMail.jar"]

0 commit comments

Comments
 (0)