• Joined on 2024-08-01

zauberstaub-backend (sha-7387c4b)

Published 2025-11-30 14:29:06 +01:00 by jonas

Installation

docker pull git.servercentral.org/jonas/zauberstaub-backend:sha-7387c4b
sha256:d1086cedb09c71ce7e2c9ff590613a28161bf5d7db3b3a9904185c8c335e2c8d

Images

Digest OS / Arch Size
2015f09ee5 linux/amd64 392 MiB

Image Layers ( linux/amd64)

ADD alpine-minirootfs-3.22.2-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c apk --no-cache add ca-certificates curl chromium nss freetype freetype-dev harfbuzz ttf-freefont udev ttf-opensans # buildkit
RUN /bin/sh -c apk add --no-cache libstdc++ xz tar gcompat libatomic && ARCH=$(uname -m) && if [ "$ARCH" = "x86_64" ]; then NODE_ARCH="x64"; elif [ "$ARCH" = "aarch64" ]; then NODE_ARCH="arm64"; else echo "Unsupported architecture: $ARCH" && exit 1; fi && NODE_VERSION="25.1.0" && echo "Downloading Node.js ${NODE_VERSION} for ${NODE_ARCH}..." && curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-${NODE_ARCH}.tar.xz" -o /tmp/node.tar.xz && echo "Extracting Node.js..." && mkdir -p /tmp/nodejs && xzcat /tmp/node.tar.xz | tar -x -C /tmp/nodejs && echo "Checking extracted contents..." && ls -la /tmp/nodejs/ && NODE_DIR="/tmp/nodejs/node-v${NODE_VERSION}-linux-${NODE_ARCH}" && if [ ! -d "$NODE_DIR" ]; then echo "ERROR: Node.js directory not found. Contents:" && ls -la /tmp/nodejs/ && exit 1; fi && mkdir -p /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share && cp -r "$NODE_DIR"/* /usr/local/ || (echo "ERROR: Failed to copy Node.js files" && exit 1) && rm -rf /tmp/nodejs /tmp/node.tar.xz && echo "Verifying Node.js installation..." && echo "Contents of /usr/local/bin:" && ls -la /usr/local/bin/ && test -f /usr/local/bin/node || (echo "ERROR: node binary not found" && ls -la /usr/local/bin/ && exit 1) && test -f /usr/local/bin/npm || (echo "ERROR: npm binary not found" && exit 1) && echo "Testing Node.js execution..." && ( /usr/local/bin/node --version 2>&1 || echo "Warning: Node.js version check failed, but binary exists" ) && ( /usr/local/bin/npm --version 2>&1 || echo "Warning: npm version check failed, but binary exists" ) && ln -sf /usr/local/bin/node /usr/bin/node && ln -sf /usr/local/bin/npm /usr/bin/npm && echo "Node.js installation complete" # buildkit
RUN /bin/sh -c adduser -D -s /bin/sh appuser # buildkit
WORKDIR /app
COPY /app/main . # buildkit
COPY /app/migrations ./migrations # buildkit
COPY /app/package.json ./package.json # buildkit
COPY /app/scripts ./scripts # buildkit
RUN /bin/sh -c npm install --production && chmod +x ./scripts/generate-multiavatar.js || echo "Note: npm install failed" # buildkit
RUN /bin/sh -c mkdir -p storage/images storage/audio avatars # buildkit
RUN /bin/sh -c chown -R appuser:appuser storage avatars migrations scripts package*.json && ([ -d node_modules ] && chown -R appuser:appuser node_modules || true) # buildkit
USER appuser
EXPOSE [8080/tcp]
CMD ["./main"]

Labels

Key Value
org.opencontainers.image.created 2025-11-30T13:26:21.052Z
org.opencontainers.image.description
org.opencontainers.image.licenses
org.opencontainers.image.revision 7387c4b341140abcbaad4f7ffb39644328e5ae46
org.opencontainers.image.source https://git.servercentral.org/Vibico/zauberstaub
org.opencontainers.image.title zauberstaub
org.opencontainers.image.url https://git.servercentral.org/Vibico/zauberstaub
org.opencontainers.image.version main
Details
Container
2025-11-30 14:29:06 +01:00
0
OCI / Docker
Versions (147) View all
main-e0c9fc6 2025-12-05
sha-e0c9fc6 2025-12-05
main 2025-12-05
latest 2025-12-05
sha-33df693 2025-12-04