Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.35 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.35 KB

Docker image for nodejs with Chromium and Firefox

Docker Image Size (tag) Travis (.org) Docker Pulls

This image allows you to run the web browser inside a docker container.

What is included?

  • alpine with X server
  • firefox
  • chromium
  • nodejs
  • yarn
  • docker-cli

Supported nodejs versions:

  • 10.x.x
  • 11.x.x
  • 12.x.x
  • 13.x.x
  • 14.x.x

(Note ".x.x" above stands for the latest minor version)

Pull the image

docker pull hex0cter/nodejs-browsers:latest

Please visit docker hub for more details.

Start a container

docker run -it --rm hex0cter/nodejs-browsers firefox
docker run -it --rm hex0cter/nodejs-browsers chrome --no-sandbox

Debug mode

docker run -it --rm -e DEBUG=true -p 5900:5900 hex0cter/nodejs-browsers firefox
docker run -it --rm -e DEBUG=true -p 5900:5900 hex0cter/nodejs-browsers chrome --no-sandbox

When DEBUG=true, the VNC server will be started, so you can access the container's GUI from any VNC viewer (port 5900).