| ADD alpine-minirootfs-3.23.4-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL author=Task Venture Capital GmbH <hello@task.vc> |
| WORKDIR /workspace |
| ENV NODE_VERSION_LTS=24.13.0 NVM_DIR=/usr/local/nvm NVM_NODEJS_ORG_MIRROR=https://unofficial-builds.nodejs.org/download/release |
| RUN /bin/sh -c apk add --no-cache bash curl git ca-certificates unzip gcompat libstdc++ tini # buildkit |
| RUN /bin/sh -c mkdir -p $NVM_DIR && curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash # buildkit |
| RUN /bin/sh -c printf '%s\n%s\n%s\n' 'export NVM_DIR="/usr/local/nvm"' '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"' '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"' > /etc/bash.bashrc # buildkit |
| COPY image_support_files/bash-with-nvm /usr/local/bin/bash-with-nvm # buildkit |
| COPY image_support_files/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit |
| COPY image_support_files/configure-pnpm-defaults /usr/local/bin/configure-pnpm-defaults # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/bash-with-nvm /usr/local/bin/docker-entrypoint.sh /usr/local/bin/configure-pnpm-defaults # buildkit |
| SHELL [/usr/local/bin/bash-with-nvm] |
| ENV BASH_ENV=/etc/bash.bashrc |
| ARG TARGETARCH=arm64 |
| RUN |1 TARGETARCH=arm64 /usr/local/bin/bash-with-nvm NVM_MUSL_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "arm64-musl" || echo "x64-musl") && nvm_get_arch() { echo "$NVM_MUSL_ARCH"; } && nvm install $NODE_VERSION_LTS && nvm alias default $NODE_VERSION_LTS && nvm use default # buildkit |
| ENV NODE_PATH=/usr/local/nvm/versions/node/v24.13.0/lib/node_modules |
| ENV PATH=/usr/local/nvm/versions/node/v24.13.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV PNPM_HOME=/root/.local/share/pnpm |
| RUN |1 TARGETARCH=arm64 /usr/local/bin/bash-with-nvm mkdir -p ${PNPM_HOME} && corepack enable && corepack prepare pnpm@11.5.2 --activate && pnpm -v && configure-pnpm-defaults # buildkit |
| ENV PATH=/root/.local/share/pnpm:/root/.local/share/pnpm/bin:/usr/local/nvm/versions/node/v24.13.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENTRYPOINT ["/sbin/tini" "--" "/usr/local/bin/docker-entrypoint.sh"] |
| CMD ["bash"] |
| LABEL author=Task Venture Capital GmbH <hello@task.vc> |
| ENV PNPM_HOME=/root/.local/share/pnpm |
| RUN /usr/local/bin/bash-with-nvm apk add --no-cache build-base python3 linux-headers wget iputils bind-tools # buildkit |
| RUN /usr/local/bin/bash-with-nvm mkdir -p ${PNPM_HOME} # buildkit |
| ENV PATH=/root/.local/share/pnpm:/root/.local/share/pnpm/bin:/root/.local/share/pnpm:/root/.local/share/pnpm/bin:/usr/local/nvm/versions/node/v24.13.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /usr/local/bin/bash-with-nvm pnpm -v && configure-pnpm-defaults # buildkit |
| RUN /usr/local/bin/bash-with-nvm apk add --no-cache ca-certificates git openssh-client skopeo # buildkit |
| WORKDIR /app |
| COPY /app /app # buildkit |
| ENV GITOPS_PORT=3000 |
| ENV HOME=/data |
| ENV NODE_ENV=production |
| RUN /usr/local/bin/bash-with-nvm mkdir -p /data/.serve.zone/gitops # buildkit |
| LABEL org.opencontainers.image.title=gitops org.opencontainers.image.description=GitOps dashboard for Gitea, GitLab, CI/CD secrets, pipelines, and documentation sync org.opencontainers.image.source=https://code.foss.global/serve.zone/gitops |
| HEALTHCHECK {Test:[CMD-SHELL node -e "const port = process.env.GITOPS_PORT || '3000'; fetch('http://127.0.0.1:' + port + '/').then((response) => process.exit(response.status < 500 ? 0 : 1)).catch(() => process.exit(1));"] Interval:30s Timeout:10s StartPeriod:1m0s StartInterval:0s Retries:3} |
| EXPOSE [3000/tcp] |
| CMD ["node" "./cli.js" "server"] |