This is a simple example of how to config your own headless chrome browser inside a docker container. Then use a simple Python web application to say hello world with python selenium.
# Copy local code to the container image. COPY app.py /app/app.py ENV APP_HOME /app WORKDIR$APP_HOME
# Run the web service on container startup. CMDexec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 app:app
app.py
import os from flask import Flask, send_file import json import logging from selenium import webdriver from selenium.webdriver.chrome.options import Options