nook-media-server (0.2.3)

Published 2026-11-20 13:38:26 +00:00 by msemes

Installation

docker pull git.mariosem.es/msemes/nook-media-server:0.2.3
sha256:5eb98e98d8a63ddc6cc2e4ca0e8ed87216be115d22f595b7355ca04c742ea11a

About this package

Serves a local movie, show and music library to a Nook server

Image Layers

ADD alpine-minirootfs-3.24.4-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
RUN /bin/sh -c set -eux; apk add --no-cache fontconfig ttf-dejavu gnupg ca-certificates p11-kit-trust musl-locales musl-locales-lang tzdata coreutils openssl ; rm -rf /var/cache/apk/* # buildkit
ENV JAVA_VERSION=jdk-21.0.13+9
RUN /bin/sh -c set -eux; ARCH="$(apk --print-arch)"; case "${ARCH}" in aarch64) ESUM='382633eb2ba28cc5b97be1446eb1dd8d2a60a3795be0166a030e4cda338c490e'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.13%2B9/OpenJDK21U-jre_aarch64_alpine-linux_hotspot_21.0.13_9.tar.gz'; ;; x86_64) ESUM='9138eab0f7d230e17163953f015ec9ae2431dbc49069c658b7f991e45b54fb9b'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.13%2B9/OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.13_9.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; wget -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; rm -rf "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; mkdir -p "$JAVA_HOME"; tar --extract --file /tmp/openjdk.tar.gz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm -f /tmp/openjdk.tar.gz; # buildkit
RUN /bin/sh -c set -eux; echo "Verifying install ..."; echo "java --version"; java --version; echo "Complete." # buildkit
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit
ENTRYPOINT ["/__cacert_entrypoint.sh"]
ARG VERSION=dev
ARG GIT_SHA=unknown
RUN |2 VERSION=0.2.3 GIT_SHA=3b3bac8 /bin/sh -c echo "build ${GIT_SHA}" && apk upgrade --no-cache && apk add --no-cache ffmpeg mesa-va-gallium libva-utils # buildkit
RUN |2 VERSION=0.2.3 GIT_SHA=3b3bac8 /bin/sh -c rm -rf /media && mkdir /media # buildkit
RUN |2 VERSION=0.2.3 GIT_SHA=3b3bac8 /bin/sh -c addgroup -S -g 10001 nook && adduser -S -D -H -u 10001 -G nook -h /app -s /sbin/nologin nook # buildkit
WORKDIR /app
COPY /workspace/build/install/nook-media-server /app # buildkit
RUN |2 VERSION=0.2.3 GIT_SHA=3b3bac8 /bin/sh -c mkdir -p /app/data && chown -R nook:nook /app/data # buildkit
VOLUME [/app/data]
USER nook:nook
ENV PORT=8090 MEDIA_ROOT=/media DATA_DIR=/app/data NMS_VERSION=0.2.3 GIT_SHA=3b3bac8 JAVA_TOOL_OPTIONS=-XX:MaxRAMPercentage=70
EXPOSE map[8090/tcp:{}]
HEALTHCHECK &{["CMD-SHELL" "wget -q -O /dev/null \"http://127.0.0.1:${PORT:-8090}/health\" || exit 1"] "30s" "5s" "20s" "0s" '\x03'}
LABEL org.opencontainers.image.title=Nook Media Server
LABEL org.opencontainers.image.description=Serves a local movie, show and music library to a Nook server
LABEL org.opencontainers.image.version=0.2.3
LABEL org.opencontainers.image.revision=3b3bac8
ENTRYPOINT ["/app/bin/nook-media-server"]

Labels

Key Value
org.opencontainers.image.description Serves a local movie, show and music library to a Nook server
org.opencontainers.image.revision 3b3bac8
org.opencontainers.image.title Nook Media Server
org.opencontainers.image.version 0.2.3
Details
Container
2026-11-20 13:38:26 +00:00
1
OCI / Docker
linux/amd64
248 MiB
Versions (5) View all
0.2.4 2026-11-20
latest 2026-11-20
0.2.3 2026-11-20
0.2.2 2026-11-20
0.2.0 2026-11-20