build: use distroless base image for new Dockerfile
/ build (push) Successful in 16s
/ build-docker-nightly (push) Has been skipped
/ build-docker-release (push) Successful in 7s

This commit is contained in:
2026-04-29 00:58:49 +02:00
parent 17f7dc2e0d
commit b7df5a3fde
2 changed files with 6 additions and 17 deletions
+3 -12
View File
@@ -1,28 +1,19 @@
# ── Stage 1: Build ────────────────────────────────────────────────────────────
FROM eclipse-temurin:21-jdk-alpine AS build FROM eclipse-temurin:21-jdk-alpine AS build
WORKDIR /app WORKDIR /app
COPY pom.xml . COPY pom.xml .
COPY src ./src COPY src ./src
# Download dependencies (cached layer), then build
RUN apk add --no-cache maven && \ RUN apk add --no-cache maven && \
mvn dependency:go-offline -q && \ mvn dependency:go-offline -q && \
mvn package -DskipTests -q mvn package -DskipTests -q
# ── Stage 2: Runtime ────────────────────────────────────────────────────────── FROM gcr.io/distroless/java21-debian12:nonroot
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app WORKDIR /app
# Copy the fat JAR from the build stage
COPY --from=build /app/target/overseerr-webhook-proxy-*.jar app.jar 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", \ ENTRYPOINT ["java", \
"-Dspring.config.additional-location=optional:file:/app/config/application.yml", \ "-Dspring.config.additional-location=optional:file:/app/config/application.yml", \
"-jar", "app.jar"] "-jar", "app.jar"]
+3 -5
View File
@@ -1,9 +1,10 @@
services: services:
webhook-proxy: webhook-proxy:
image: viziona.dev/taiqane/discord-webhook-proxy:nightly
build: . build: .
restart: unless-stopped
ports: ports:
- "8080:8080" - "127.0.0.1:8080:8080"
restart: unless-stopped
networks: networks:
- seerr-net - seerr-net
@@ -13,9 +14,6 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "5055:5055" - "5055:5055"
environment:
- LOG_LEVEL=debug
- TZ=Europe/Berlin
networks: networks:
- seerr-net - seerr-net