feat(docker): add Chromium support for Puppeteer/Playwright and npm build/release scripts

This commit is contained in:
2026-02-06 09:31:43 +00:00
parent 2a7eb157b6
commit c3847a970e
3 changed files with 16 additions and 5 deletions

View File

@@ -2,9 +2,13 @@ FROM ubuntu:24.04
LABEL author="Task Venture Capital GmbH <hello@task.vc>"
WORKDIR /workspace
# important environment variables
# important environment variables
ENV NODE_VERSION_LTS="24.13.0" NODE_VERSION_STABLE="24.13.0" NVM_DIR="/usr/local/nvm"
# Chromium paths for Puppeteer/Playwright compatibility
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV CHROME_BIN=/usr/bin/chromium-browser
# Set debconf to run non-interactively and install packages
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& apt-get update \
@@ -69,9 +73,8 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
iputils-ping \
dnsutils \
# chrome
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt install -y -q --no-install-recommends ./google-chrome-stable_current_amd64.deb \
# chromium (multi-arch compatible - works on both amd64 and arm64)
&& apt-get install -y -q --no-install-recommends chromium-browser \
# mongodb 8.0
&& curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \