first commit

This commit is contained in:
2026-07-16 18:51:55 +02:00
commit 8c42077112
96 changed files with 12526 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM maven:3.9.16-amazoncorretto-25 AS builder
COPY settings.xml /usr/share/maven/conf/settings.xml
WORKDIR /build
COPY pom.xml .
RUN mvn dependency:go-offline -B
COPY src ./src
RUN mvn clean package -DskipTests=true
FROM eclipse-temurin:25-jre-alpine
RUN addgroup -g 1000 appgroup && adduser -u 1000 -G appgroup -S appuser
RUN apk update && apk add --no-cache \
mpv \
socat \
curl \
python3 \
bash
WORKDIR /app
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp
RUN chmod a+rx /usr/bin/yt-dlp
COPY --from=builder /build/target/mpv-client.jar ./mpv-client.jar
USER appuser
ENTRYPOINT ["java", "-jar", "mpv-client.jar"]