Block a user
media-viewer (a37cae7)
Published 2026-09-15 02:37:09 +00:00 by jknapp
Installation
docker pull repo.anhonesthost.net/jknapp/media-viewer:a37cae7sha256:aac98c2edfdf831665c0fe44998bc078fbaa68f7aba409089d4c53bca0dc8abc
Images
| Digest | OS / Arch | Size |
|---|---|---|
| fc40d91541 | linux/amd64 | 381 MiB |
Image Layers ( linux/amd64)
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1777939200' |
| ENV DEBIAN_FRONTEND=noninteractive NODE_ENV=production LANG=C.UTF-8 LC_ALL=C.UTF-8 PGDATA=/var/lib/postgresql/data POSTGRES_USER=media_viewer POSTGRES_DB=media_viewer DATABASE_URL=postgres://media_viewer:media_viewer@127.0.0.1:5432/media_viewer MEDIA_ROOT=/media PORT=8080 HOST=0.0.0.0 PUID=1000 PGID=1000 |
| RUN /bin/sh -c printf 'Types: deb\nURIs: http://deb.debian.org/debian\nSuites: bookworm\nComponents: non-free non-free-firmware\nSigned-By: /usr/share/keyrings/debian-archive-keyring.gpg\n' > /etc/apt/sources.list.d/non-free.sources && apt-get update && apt-get install -y --no-install-recommends ca-certificates curl xz-utils tini gosu postgresql-15 postgresql-client-15 ffmpeg libimage-exiftool-perl tzdata intel-media-va-driver-non-free i965-va-driver vainfo && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y --no-install-recommends nodejs && rm -rf /var/lib/apt/lists/* # buildkit |
| ARG S6_OVERLAY_VERSION=3.2.0.0 |
| RUN |1 S6_OVERLAY_VERSION=3.2.0.0 /bin/sh -c curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz" | tar -C / -Jxpf - && ARCH="$(dpkg --print-architecture)" && case "$ARCH" in amd64) S6_ARCH=x86_64 ;; arm64) S6_ARCH=aarch64 ;; armhf) S6_ARCH=arm ;; *) echo "unsupported arch $ARCH" >&2; exit 1 ;; esac && curl -fsSL "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz" | tar -C / -Jxpf - # buildkit |
| RUN |1 S6_OVERLAY_VERSION=3.2.0.0 /bin/sh -c groupadd -g 1000 app && useradd -u 1000 -g 1000 -m -d /app -s /bin/bash app && mkdir -p /app /media /var/lib/postgresql /var/log/media-viewer && chown -R app:app /app /var/log/media-viewer # buildkit |
| COPY --chown=app:app /deploy/dist /app/dist # buildkit |
| COPY --chown=app:app /deploy/node_modules /app/node_modules # buildkit |
| COPY --chown=app:app /deploy/package.json /app/package.json # buildkit |
| COPY --chown=app:app /build/apps/server/src/db/migrations /app/src/db/migrations # buildkit |
| COPY --chown=app:app /build/apps/server/public /app/public # buildkit |
| COPY docker/s6 /etc/s6-overlay/s6-rc.d # buildkit |
| COPY docker/s6-bin /etc/s6-overlay/scripts # buildkit |
| RUN |1 S6_OVERLAY_VERSION=3.2.0.0 /bin/sh -c chmod -R +x /etc/s6-overlay/s6-rc.d /etc/s6-overlay/scripts # buildkit |
| COPY docker/postgres/postgresql.conf /etc/postgresql/postgresql.conf # buildkit |
| COPY docker/postgres/pg_hba.conf /etc/postgresql/pg_hba.conf # buildkit |
| ENV S6_KEEP_ENV=1 S6_BEHAVIOUR_IF_STAGE2_FAILS=2 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 |
| EXPOSE map[8080/tcp:{}] |
| VOLUME [/var/lib/postgresql/data /media] |
| HEALTHCHECK &{["CMD-SHELL" "curl -fsS http://127.0.0.1:8080/readyz || exit 1"] "30s" "5s" "1m0s" "0s" '\x03'} |
| ENTRYPOINT ["/init"] |