Skip to content

Commit

Permalink
Use smaller jre docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
MartelliEnrico committed Oct 12, 2023
1 parent 658d622 commit c16c795
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM eclipse-temurin:21 AS base

FROM base AS builder
FROM eclipse-temurin:21-jdk AS builder
WORKDIR /app
COPY settings.gradle build.gradle gradlew ./
COPY gradle ./gradle
Expand All @@ -9,7 +7,7 @@ RUN --mount=type=cache,target=/home/gradle/.gradle/caches \
COPY . .
RUN ./gradlew shadowJar --no-daemon

FROM base AS bot
FROM eclipse-temurin:21-jre AS bot
WORKDIR /app
COPY --from=builder /app/build/libs/Stickerify-shadow.jar .
COPY --from=mwader/static-ffmpeg:6.0 /ffmpeg /usr/local/bin/
Expand Down

0 comments on commit c16c795

Please sign in to comment.