| ADD alpine-minirootfs-3.24.1-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 coreutils=9.11-r0 curl git ca-certificates openssl=3.5.8-r0 unzip gcompat libstdc++ tini # buildkit |
| RUN /bin/sh -c mkdir -p $NVM_DIR && curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.7/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 |
| RUN /usr/local/bin/bash-with-nvm 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 |
| 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 |
| RUN /usr/local/bin/bash-with-nvm set -o pipefail && mkdir -p ${PNPM_HOME} && curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=12.3.1 ENV=/root/.bashrc SHELL=/bin/bash bash - && test "$(pnpm --version)" = "12.3.1" && configure-pnpm-defaults # buildkit |
| COPY third_party/pnpm /usr/share/doc/ht-docker-node/pnpm # buildkit |
| COPY third_party/alpine /usr/share/doc/ht-docker-node/alpine # buildkit |
| COPY image_support_files/install-alpine-materials.mjs /usr/local/lib/ht-docker-node/install-alpine-materials.mjs # buildkit |
| RUN /usr/local/bin/bash-with-nvm node /usr/local/lib/ht-docker-node/install-alpine-materials.mjs verify core # buildkit |
| COPY license.md /usr/share/doc/ht-docker-node/license.md # buildkit |
| ENTRYPOINT ["/sbin/tini" "--" "/usr/local/bin/docker-entrypoint.sh"] |
| CMD ["bash"] |
| LABEL author=Task Venture Capital GmbH <hello@task.vc> |
| RUN /usr/local/bin/bash-with-nvm apk add --no-cache deno=2.7.4-r2 && node /usr/local/lib/ht-docker-node/install-alpine-materials.mjs install deno # buildkit |
| ENV DENO_DIR=/deno-dir |
| WORKDIR /app |
| COPY .npmrc deno.json deno.lock mod.ts ./ # buildkit |
| COPY ts/ ./ts/ # buildkit |
| COPY ts_interfaces/ ./ts_interfaces/ # buildkit |
| COPY /app/ts_bundled/bundle.ts ./ts_bundled/bundle.ts # buildkit |
| RUN /usr/local/bin/bash-with-nvm deno cache mod.ts && delgroup ping && addgroup -S -g 999 database && adduser -S -D -u 999 -G database -h /app database && mkdir -p /data /deno-dir && chown -R database:database /app /data /deno-dir # buildkit |
| EXPOSE [27017/tcp 3000/tcp] |
| VOLUME [/data] |
| USER 999:999 |
| HEALTHCHECK {Test:[CMD-SHELL wget -q -O /dev/null http://127.0.0.1:3000/readyz || exit 1] Interval:30s Timeout:5s StartPeriod:10s StartInterval:0s Retries:3} |
| ENTRYPOINT ["/sbin/tini" "--"] |
| CMD ["deno" "run" "--allow-all" "mod.ts" "server"] |