fix: use a glibc base image for sqlite-jdbc
Alpine/musl cannot load sqlite-jdbc's bundled native library, so the container failed at startup. Switch the runtime image to eclipse-temurin:21-jre-jammy and verify the image end-to-end, including transcoding, against a read-only root filesystem. The smoke fixture now uses a 192 kbps source so the maxBitRate check actually proves transcoding instead of direct play.
This commit is contained in:
1 parent
25331ec0e1
commit
7d98bc1d3a
3 files changed
+14
-9
No files matched your search
+7
-4
@@ -10,11 +10,14 @@ RUN ./gradlew --no-daemon dependencies > /dev/null
|
||||
COPY src ./src
|
||||
RUN ./gradlew --no-daemon shadowJar
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
# glibc (not Alpine/musl): sqlite-jdbc ships no native library for Linux-Musl.
|
||||
FROM eclipse-temurin:21-jre-jammy
|
||||
|
||||
RUN apk add --no-cache ffmpeg \
|
||||
&& addgroup -g 10001 -S app \
|
||||
&& adduser -u 10001 -S -G app app
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ffmpeg \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& groupadd -g 10001 app \
|
||||
&& useradd -u 10001 -g app -M -s /usr/sbin/nologin app
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /src/build/libs/*-all.jar /app/musicmanager.jar
|
||||
|
||||
Reference in new issue
Block a user