Sign inSign up

etiennepasteur/chrome-with-node

By etiennepasteur

•Updated 4 months ago

node-alpine image with chromium installed

Image
Integration & delivery
Developer tools
0

3.1K

etiennepasteur/chrome-with-node repository overview

⁠chrome-with-node:24.18.0-alpine

⁠Overview

This Docker image provides a minimal Node.js environment bundled with the Chromium browser, tailored for testing purposes. It is based on the lightweight Alpine Linux distribution.

⁠Key Features
  • Node.js Version: 24.18.0
  • Chromium: The latest version of the Chromium browser is installed, providing a headless browser for various testing scenarios (with chromium-lang).
  • Alpine Linux: Lightweight Alpine Linux distribution.
⁠Usage

This image is perfect for running automated tests that require both Node.js and a headless browser environment. It can be used for continuous integration pipelines, end-to-end testing, and other scenarios where Chromium is needed alongside Node.js.

⁠Building the Image

To build the image with a different Node.js version, use the --build-arg parameter:

docker build --build-arg NODE_VERSION=24.18.0 -t chrome-with-node:24.18.0-alpine .
⁠Environment Variables
  • CHROME_BIN: Path to the Chromium binary (/usr/bin/chromium-browser)
  • CHROME_PATH: Path to the Chromium installation directory (/usr/lib/chromium/)
⁠Tags
  • 24.18.0-alpine
  • 24.14.1-alpine
  • 24.13.0-alpine
  • 24.11.1-alpine
  • 22.16.0-alpine
  • 20.15.0-alpine
⁠License

This image is provided under the MIT License. See the LICENSE⁠ for more details.

⁠Dockerfile
ARG NODE_VERSION="24.18.0"

FROM node:${NODE_VERSION}-alpine

LABEL maintainer="[email protected]"
LABEL name="chrome-with-node:${NODE_VERSION}-alpine"
LABEL version="1.0.0"
LABEL version.node=${NODE_VERSION}

RUN apk add --no-cache \
    chromium chromium-lang git openssh-client

ENV CHROME_BIN=/usr/bin/chromium-browser \
    CHROME_PATH=/usr/lib/chromium/

Tag summary

Content type

Image

Digest

sha256:c385f43ec…

Size

372.3 MB

Last updated

4 months ago

docker pull etiennepasteur/chrome-with-node:26.3.1-alpine