feat: Initial commit

This commit is contained in:
2026-04-29 00:02:58 +02:00
commit 1f4eba49cf
15 changed files with 786 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# ── 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
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"]