A lightweight Selenium-Python (3.12) base image on Alpine, pre-configured with Firefox for testing.
182
miguelcabgil/selenium_base is a lightweight Docker image built for Selenium automation using Firefox and Python 3.12, based on Alpine Linux. It’s designed for efficiency, making it ideal for CI/CD workflows, web testing, and automation tasks that require a minimal footprint.
gcc, musl-dev, libffi-dev) for Python dependencies.To use this image, you can pull it directly from Docker Hub:
docker pull miguelcabgil/selenium_base:latest
This guide provides an example Dockerfile to run Selenium-based Python scripts in a containerized environment.
Here’s an example Dockerfile to set up and execute your Selenium-based Python scripts:
# Copy your Python script into the container
COPY your_script.py /app/
# Set the working directory
WORKDIR /app
# Run the script
CMD ["python", "your_script.py"]
You can also run your Selenium script directly from this Docker image without creating a custom image. Use the following command to execute the script:
docker run -it --rm -v $(pwd):/app miguelcabgil/selenium_base:latest python /app/your_script.py
This Docker image includes:
gcc, musl-dev, and openssl-dev.This image is optimized for:
Content type
Image
Digest
sha256:1d94357fc…
Size
234 MB
Last updated
almost 2 years ago
docker pull miguelcabgil/selenium_base