feat(docker): add Chromium support for Puppeteer/Playwright and npm build/release scripts
This commit is contained in:
@@ -5,6 +5,10 @@ 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"
|
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
|
# Set debconf to run non-interactively and install packages
|
||||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
@@ -69,9 +73,8 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
|||||||
iputils-ping \
|
iputils-ping \
|
||||||
dnsutils \
|
dnsutils \
|
||||||
|
|
||||||
# chrome
|
# chromium (multi-arch compatible - works on both amd64 and arm64)
|
||||||
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
&& apt-get install -y -q --no-install-recommends chromium-browser \
|
||||||
&& apt install -y -q --no-install-recommends ./google-chrome-stable_current_amd64.deb \
|
|
||||||
|
|
||||||
# mongodb 8.0
|
# mongodb 8.0
|
||||||
&& curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
|
&& curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-02-06 - 5.3.0 - feat(docker)
|
||||||
|
add Chromium support for Puppeteer/Playwright and npm build/release scripts
|
||||||
|
|
||||||
|
- Add PUPPETEER_EXECUTABLE_PATH and CHROME_BIN env vars pointing to /usr/bin/chromium-browser for Puppeteer/Playwright compatibility
|
||||||
|
- Replace Google Chrome .deb download with apt-get install chromium-browser for multi-arch (amd64/arm64) compatibility
|
||||||
|
- Add npm scripts: 'build' -> 'tsdocker build' and 'release' -> 'tsdocker push' in package.json
|
||||||
|
|
||||||
## 2026-02-06 - 5.2.0 - feat(ci)
|
## 2026-02-06 - 5.2.0 - feat(ci)
|
||||||
switch CI to use @git.zone/tsdocker and add tsdocker config and image tests
|
switch CI to use @git.zone/tsdocker and add tsdocker config and image tests
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"no npm test specified\"",
|
"test": "echo \"no npm test specified\"",
|
||||||
"build": "echo \"Not needed for now\""
|
"build": "tsdocker build",
|
||||||
|
"release": "tsdocker push"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user