Block a user
blog-astrowind (sha256:1ce2b434d9674e3c67dad901f9c0124548a41ba33ff439bcaf5246ff6ae76d5c)
Published 2025-09-06 18:18:13 +08:00 by Ivan
Installation
docker pull git.ivanli.cc/ivan/blog-astrowind@sha256:1ce2b434d9674e3c67dad901f9c0124548a41ba33ff439bcaf5246ff6ae76d5c
sha256:1ce2b434d9674e3c67dad901f9c0124548a41ba33ff439bcaf5246ff6ae76d5c
Image Layers
# debian.sh --arch 'arm64' out/ 'bookworm' '@1754870400' |
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 docker-entrypoint.sh /usr/local/bin # buildkit |
COPY /usr/local/bin/bun /usr/local/bin/bun # buildkit |
RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c mkdir -p /usr/local/bun-node-fallback-bin && ln -s /usr/local/bin/bun /usr/local/bun-node-fallback-bin/node # buildkit |
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bun-node-fallback-bin |
RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c groupadd bun --gid 1000 && useradd bun --uid 1000 --gid bun --shell /bin/sh --create-home && 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"] |
WORKDIR /app |
RUN /bin/sh -c groupadd --gid 1001 nodejs && useradd --uid 1001 --gid nodejs --shell /bin/bash --create-home nextjs # buildkit |
RUN /bin/sh -c apt-get update && apt-get install -y curl ca-certificates sqlite3 && rm -rf /var/lib/apt/lists/* # buildkit |
ENV NODE_ENV=production |
ENV NEXT_TELEMETRY_DISABLED=1 |
ENV HOST=0.0.0.0 |
ENV PORT=3000 |
COPY --chown=nextjs:nodejs /app/public ./public # buildkit |
COPY --chown=nextjs:nodejs /app/.next/standalone ./ # buildkit |
COPY --chown=nextjs:nodejs /app/.next/static ./.next/static # buildkit |
COPY /ms-playwright /ms-playwright # buildkit |
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright |
RUN /bin/sh -c mkdir -p /app/data && chown -R nextjs:nodejs /app/data # buildkit |
RUN /bin/sh -c mkdir -p /app/public/uploads && chown -R nextjs:nodejs /app/public/uploads # buildkit |
USER nextjs |
EXPOSE map[3000/tcp:{}] |
HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:3000/api/trpc/health || exit 1"] "30s" "10s" "1m0s" "0s" '\x03'} |
CMD ["bun" "server.js"] |
Labels
Key | Value |
---|---|
org.opencontainers.image.created | 2025-09-06T09:54:50.901Z |
org.opencontainers.image.description | |
org.opencontainers.image.licenses | |
org.opencontainers.image.revision | 488b947753706f66ec6244415a6f8a1abcaea30b |
org.opencontainers.image.source | https://git.ivanli.cc/Ivan/blog-astrowind |
org.opencontainers.image.title | blog-astrowind |
org.opencontainers.image.url | https://git.ivanli.cc/Ivan/blog-astrowind |
org.opencontainers.image.version | nextjs |
Details
2025-09-06 18:18:13 +08:00
Versions (11)
View all
Container
0
OCI / Docker
linux/arm64
376 MiB
nextjs
2025-09-07
nextjs-b2c0e81
2025-09-07
nextjs-fba4b46
2025-09-06
nextjs-488b947
2025-09-06
nextjs-082d11f
2025-09-05