diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fc30e4e7e..519084eea 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ // https://github.com/devcontainers/images/blob/v0.2.24/src/javascript-node/.devcontainer/devcontainer.json { "name": "Node.js", - "image": "mcr.microsoft.com/devcontainers/javascript-node:18-bookworm", + "image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye", // Configure tool-specific properties. "customizations": { diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06cd66a23..8d4b882d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -102,7 +102,7 @@ jobs: if: ${{ matrix.chromium.dependency != '' }} # 'chromium-browser' from Ubuntu APT repo is a dummy package. Its version (85.0.4183.83) means # nothing since it calls Snap (disgusting!) to install Chromium, which should be up-to-date. - # That's not really a problem since the Chromium-bundled Docker image is based on Debian bookworm, + # That's not really a problem since the Chromium-bundled Docker image is based on Debian bullseye, # which provides up-to-date native packages. run: | set -ex diff --git a/Dockerfile b/Dockerfile index 5dbb95976..0a765325c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-bookworm AS dep-builder +FROM node:18-bullseye AS dep-builder # Here we use the non-slim image to provide build-time deps (compilers and python), thus no need to install later. # This effectively speeds up qemu-based cross-build. @@ -28,11 +28,11 @@ RUN \ # --------------------------------------------------------------------------------------------------------------------- -FROM debian:bookworm-slim AS dep-version-parser +FROM debian:bullseye-slim AS dep-version-parser # This stage is necessary to limit the cache miss scope. # With this stage, any modification to package.json won't break the build cache of the next two stages as long as the # version unchanged. -# node:18-bookworm-slim is based on debian:bookworm-slim so this stage would not cause any additional download. +# node:18-bullseye-slim is based on debian:bullseye-slim so this stage would not cause any additional download. WORKDIR /ver COPY ./package.json /app/ @@ -44,7 +44,7 @@ RUN \ # --------------------------------------------------------------------------------------------------------------------- -FROM node:18-bookworm-slim AS docker-minifier +FROM node:18-bullseye-slim AS docker-minifier # The stage is used to further reduce the image size by removing unused files. WORKDIR /minifier @@ -66,11 +66,9 @@ COPY --from=dep-builder /app /app RUN \ set -ex && \ - # Minify Docker image cp /app/scripts/docker/minify-docker.js /minifier/ && \ export PROJECT_ROOT=/app && \ node /minifier/minify-docker.js && \ - # Use the minified node_modules rm -rf /app/node_modules /app/scripts && \ mv /app/app-minimal/node_modules /app/ && \ rm -rf /app/app-minimal && \ @@ -79,7 +77,7 @@ RUN \ # --------------------------------------------------------------------------------------------------------------------- -FROM node:18-bookworm-slim AS chromium-downloader +FROM node:18-bullseye-slim AS chromium-downloader # This stage is necessary to improve build concurrency and minimize the image size. # Yeah, downloading Chromium never needs those dependencies below. @@ -111,7 +109,7 @@ RUN \ # --------------------------------------------------------------------------------------------------------------------- -FROM node:18-bookworm-slim AS app +FROM node:18-bullseye-slim AS app LABEL org.opencontainers.image.authors="https://github.com/DIYgod/RSSHub" @@ -125,7 +123,7 @@ ARG TARGETPLATFORM ARG PUPPETEER_SKIP_DOWNLOAD=1 # https://pptr.dev/troubleshooting#chrome-headless-doesnt-launch-on-unix # https://github.com/puppeteer/puppeteer/issues/7822 -# https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.en.html#noteworthy-obsolete-packages +# https://www.debian.org/releases/bullseye/amd64/release-notes/ch-information.en.html#noteworthy-obsolete-packages # The official recommended way to use Puppeteer on arm/arm64 is to install Chromium from the distribution repositories: # https://github.com/puppeteer/puppeteer/blob/07391bbf5feaf85c191e1aa8aa78138dce84008d/packages/puppeteer-core/src/node/BrowserFetcher.ts#L128-L131 RUN \