Ivan Li Ivan

blog-astrowind (sha256:434f7d6c51bc2aa97c591bca939d02437c358cf05000609ceb48eade16b920b3)

Published 2025-07-26 21:31:09 +08:00 by Ivan

Installation

docker pull git.ivanli.cc/ivan/blog-astrowind@sha256:434f7d6c51bc2aa97c591bca939d02437c358cf05000609ceb48eade16b920b3
sha256:434f7d6c51bc2aa97c591bca939d02437c358cf05000609ceb48eade16b920b3

Image Layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1751241600'
COPY docker-entrypoint.sh /usr/local/bin # buildkit
COPY /usr/local/bin/bun /usr/local/bin/bun # buildkit
RUN /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
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
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"]
ARG BUILD_DATE=20250726
ARG COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d
ARG COMMIT_SHORT_HASH=5df374f
ARG REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind
WORKDIR /app
COPY ./package.json ./package.json # buildkit
COPY ./bun.lockb ./bun.lockb # buildkit
RUN |4 BUILD_DATE=20250726 COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d COMMIT_SHORT_HASH=5df374f REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind /bin/sh -c apt-get update && apt-get install -y curl ca-certificates libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxss1 libgconf-2-4 libxcomposite1 libxrandr2 libasound2 libpangocairo-1.0-0 libgtk-3-0 libgbm1 && rm -rf /var/lib/apt/lists/* # buildkit
RUN |4 BUILD_DATE=20250726 COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d COMMIT_SHORT_HASH=5df374f REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind /bin/sh -c bun install --frozen --no-cache # buildkit
ENV DEBIAN_FRONTEND=noninteractive
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=0
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
RUN |4 BUILD_DATE=20250726 COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d COMMIT_SHORT_HASH=5df374f REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind /bin/sh -c timeout 600 bunx playwright install chromium --force # buildkit
COPY . . # buildkit
ENV BUILD_DATE=20250726
ENV COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d
ENV COMMIT_SHORT_HASH=5df374f
ENV REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind
RUN |4 BUILD_DATE=20250726 COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d COMMIT_SHORT_HASH=5df374f REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind /bin/sh -c bun run build # buildkit
ENV HOST=0.0.0.0
ENV NODE_ENV=production
RUN |4 BUILD_DATE=20250726 COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d COMMIT_SHORT_HASH=5df374f REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind /bin/sh -c mkdir -p /app/data # buildkit
RUN |4 BUILD_DATE=20250726 COMMIT_HASH=5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d COMMIT_SHORT_HASH=5df374f REPOSITORY_URL=https://git.ivanli.cc/Ivan/blog-astrowind /bin/sh -c chmod +x ./entrypoint.sh # buildkit
EXPOSE map[4321/tcp:{}]
HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:4321/api/trpc/health || exit 1"] "30s" "10s" "1m0s" "0s" '\x03'}
ENTRYPOINT ["./entrypoint.sh"]

Labels

Key Value
org.opencontainers.image.created 2025-07-26T13:26:13.198Z
org.opencontainers.image.description
org.opencontainers.image.licenses
org.opencontainers.image.revision 5df374f304d72bf8d67fd11eee23b6cfb3d1ed6d
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 main
Details
Container
2025-07-26 21:31:09 +08:00
1
OCI / Docker
linux/amd64
656 MiB
Versions (1) View all
main 2025-07-27