SeleniumBrowser / Dockerfile
likhonsheikh's picture
Create Dockerfile
f9f77ec verified
raw
history blame
616 Bytes
# Official Selenium standalone with Chrome + Firefox and noVNC
FROM selenium/standalone-docker:latest
# Set timezone for consistency
ENV TZ=UTC
# Grid & Node config
ENV SE_EVENT_BUS_HOST=localhost
ENV SE_EVENT_BUS_PUBLISH_PORT=4442
ENV SE_EVENT_BUS_SUBSCRIBE_PORT=4443
ENV SE_NODE_MAX_SESSIONS=5
ENV SE_NODE_SESSION_TIMEOUT=300
# Enable noVNC for direct browser control
ENV SE_VNC_NO_PASSWORD=1
ENV SE_SCREEN_WIDTH=1920
ENV SE_SCREEN_HEIGHT=1080
ENV SE_SCREEN_DEPTH=24
# Expose WebDriver and VNC/noVNC ports
EXPOSE 4444 7900 5900
# Default CMD runs Selenium Grid (hub + nodes + VNC)
CMD ["selenium-standalone"]