From b7df5a3fdee4ac36ae0b100124bb2ef0b3c9c3c9 Mon Sep 17 00:00:00 2001 From: Mathias Dollenbacher Date: Wed, 29 Apr 2026 00:58:49 +0200 Subject: [PATCH] build: use distroless base image for new Dockerfile --- Dockerfile | 15 +++------------ docker-compose.yml | 8 +++----- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 56d6524..b364879 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,19 @@ -# ── Stage 1: Build ──────────────────────────────────────────────────────────── FROM eclipse-temurin:21-jdk-alpine AS build + WORKDIR /app COPY pom.xml . COPY src ./src -# Download dependencies (cached layer), then build RUN apk add --no-cache maven && \ mvn dependency:go-offline -q && \ mvn package -DskipTests -q -# ── Stage 2: Runtime ────────────────────────────────────────────────────────── -FROM eclipse-temurin:21-jre-alpine +FROM gcr.io/distroless/java21-debian12:nonroot WORKDIR /app -# Copy the fat JAR from the build stage COPY --from=build /app/target/overseerr-webhook-proxy-*.jar app.jar -# The application.yml can be overridden by mounting a file at: -# /app/config/application.yml -VOLUME ["/app/config"] - -EXPOSE 8080 - ENTRYPOINT ["java", \ "-Dspring.config.additional-location=optional:file:/app/config/application.yml", \ - "-jar", "app.jar"] + "-jar", "app.jar"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f716aad..3d55538 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,10 @@ services: webhook-proxy: + image: viziona.dev/taiqane/discord-webhook-proxy:nightly build: . - restart: unless-stopped ports: - - "8080:8080" + - "127.0.0.1:8080:8080" + restart: unless-stopped networks: - seerr-net @@ -13,9 +14,6 @@ services: restart: unless-stopped ports: - "5055:5055" - environment: - - LOG_LEVEL=debug - - TZ=Europe/Berlin networks: - seerr-net