Block a user
blog-astrowind (sha256:83a281370acd707e8aab53d272e3eca931790249c6af8a4391e61c19d461d707)
Published 2025-07-24 06:02:42 +08:00 by Ivan
Installation
docker pull git.ivanli.cc/ivan/blog-astrowind@sha256:83a281370acd707e8aab53d272e3eca931790249c6af8a4391e61c19d461d707
sha256:83a281370acd707e8aab53d272e3eca931790249c6af8a4391e61c19d461d707
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"] |
WORKDIR /app |
COPY ./package.json ./package.json # buildkit |
COPY ./bun.lockb ./bun.lockb # buildkit |
RUN /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 /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 /bin/sh -c timeout 300 bunx playwright install chromium --force # buildkit |
COPY . . # buildkit |
RUN /bin/sh -c bun run build # buildkit |
ENV HOST=0.0.0.0 |
ENV NODE_ENV=production |
RUN /bin/sh -c mkdir -p /app/data # buildkit |
RUN /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-23T21:58:44.651Z |
org.opencontainers.image.description | |
org.opencontainers.image.licenses | |
org.opencontainers.image.revision | 411c968c85bfdc98aaa876e4ab7b6e15475aa10f |
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 |