momentum (0.26.0)
Published 2024-07-04 21:47:06 -04:00 by ztimson
Installation
docker pull git.zakscode.com/ztimson/momentum:0.26.0
sha256:ae5a3bfd75ecbdaeeb6cb136e4ce79467080ebf1204f1e13fc41e8211eb4d3e8
About this package
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
Image Layers
ADD file:aa183dc07d0f6a47c02f7f1388fa0ce4639ad328111172149be7c7c65d634ded in / |
CMD ["/bin/sh"] |
ARG BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 |
ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 |
ARG BUN_INSTALL_BIN=/usr/local/bin |
ENV BUN_INSTALL_BIN=/usr/local/bin |
COPY /usr/local/bin/bun /usr/local/bin/ # buildkit |
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c addgroup -g 1000 bun && adduser -u 1000 -G bun -s /bin/sh -D bun && apk --no-cache --force-overwrite --allow-untrusted add /tmp/glibc.apk /tmp/glibc-bin.apk && ln -s /usr/local/bin/bun /usr/local/bin/bunx && which bun && which bunx && bun --version # buildkit |
WORKDIR /home/bun/app |
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] |
CMD ["/usr/local/bin/bun"] |
ARG NODE_ENV=prod |
ARG NODE_OPTIONS=--max_old_space_size=2048 |
ENV PORT=80 NODE_ENV=prod NODE_OPTIONS=--max_old_space_size=2048 TZ=UTC |
RUN |2 NODE_ENV=prod NODE_OPTIONS=--max_old_space_size=2048 /bin/sh -c apk add --no-cache chromium curl ttf-freefont tzdata udev # buildkit |
RUN |2 NODE_ENV=prod NODE_OPTIONS=--max_old_space_size=2048 /bin/sh -c mkdir /app # buildkit |
COPY . /app/ # buildkit |
WORKDIR /app/server |
RUN |2 NODE_ENV=prod NODE_OPTIONS=--max_old_space_size=2048 /bin/sh -c cd /app/lib && if [ ! -d "dist" ]; then bun i && bun run build; fi && rm -r node_modules src bun.lockb # buildkit |
RUN |2 NODE_ENV=prod NODE_OPTIONS=--max_old_space_size=2048 /bin/sh -c if [ ! -d "/app/server/ui" ]; then cd /app/ui && bun i && bun run build; fi && cd /app/server && rm -r /app/ui # buildkit |
RUN |2 NODE_ENV=prod NODE_OPTIONS=--max_old_space_size=2048 /bin/sh -c if [ ! -d "node_modules" ]; then bun i; fi && bun run build # buildkit |
EXPOSE map[80/tcp:{}] |
HEALTHCHECK &{["CMD-SHELL" "curl --fail \"http://localhost:$PORT/api/healthcheck\""] "30s" "10s" "0s" "0s" '\x03'} |
CMD ["bun" "src/main.ts"] |
Labels
Key | Value |
---|---|
org.opencontainers.image.created | 2024-07-03T23:39:36.668Z |
org.opencontainers.image.description | Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one |
org.opencontainers.image.licenses | NOASSERTION |
org.opencontainers.image.revision | 5a0b93523134ca0043ee7ae84f01003aa4b7ff69 |
org.opencontainers.image.source | https://github.com/oven-sh/bun |
org.opencontainers.image.title | bun |
org.opencontainers.image.url | https://github.com/oven-sh/bun |
org.opencontainers.image.version | 1.1.18-alpine |
Details
2024-07-04 21:47:06 -04:00
Versions (69)
View all
Container
2489
OCI / Docker
linux/amd64
NOASSERTION
338 MiB