diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d5d2fc..da4d55d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,15 +26,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - suffix: ['', '-headless'] - python: ['3.12', '3.11', '3.10', '3.9'] - node: ['20', '18', '16'] + python: ['3.13', '3.12', '3.11'] + node: ['22', '20'] steps: - uses: actions/checkout@v4 - name: Configure tag & caching run: | # Set tag - TAG="py${{ matrix.python }}-node${{ matrix.node }}${{ matrix.suffix }}" + TAG="py${{ matrix.python }}-node${{ matrix.node }}" # Append a PR identifier if necessary PR="${{ github.event.pull_request.number }}" if [ ! -z "$PR" ]; then TAG="$TAG-pr$PR"; fi @@ -49,12 +48,6 @@ jobs: CACHEFROM="type=gha" fi echo "CACHEFROM=$CACHEFROM" >> $GITHUB_ENV - - - name: Prepare Dockerfile - if: matrix.suffix == '-headless' - run: | - mv Dockerfile original.txt - cat original.txt headless.txt > Dockerfile - name: Prepare image metadata id: meta uses: docker/metadata-action@v5 diff --git a/Dockerfile b/Dockerfile index 290ed07..e15f775 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,10 @@ FROM python:${PYTHON_VERSION} # Node and npm COPY --from=node_base /usr/local/lib/node_modules /usr/local/lib/node_modules COPY --from=node_base /usr/local/bin/node /usr/local/bin/node -COPY --from=node_base /opt/yarn-* /opt/yarn RUN ln -s /usr/local/lib/node_modules/corepack/dist/corepack.js /usr/local/bin/corepack RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm RUN ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx -RUN ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn -RUN ln -s /opt/yarn/bin/yarnpkg /usr/local/bin/yarnpkg +RUN corepack enable RUN node --version && npm --version && yarn --version # System setup: diff --git a/headless.txt b/headless.txt deleted file mode 100644 index 5549237..0000000 --- a/headless.txt +++ /dev/null @@ -1,6 +0,0 @@ -# The contents of this file are automatically appended to Dockerfile - -RUN apt-get update \ - && apt-get install -y chromium --no-install-recommends \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/*