A lightweight web scraper
1.1K
This Dockerfile creates a lightweight, flexible container optimized for running Python-based Selenium scripts with Chromium browser support. Below is an outline of the key components and their functions:
FROM python:3.11-slim:
RUN apt-get update && apt-get install:
chromium: Lightweight web browser for headless automation.chromium-driver: WebDriver for Selenium to control Chromium.apt cache to reduce image size.WORKDIR /app:
/app, where the code and dependencies are located.COPY requirements.txt .:
RUN pip install --upgrade pip:
pip is used for dependency management.pip install --no-cache-dir -r requirements.txt:
requirements.txt without caching to save space.RUN pip install selenium==4.25.0:ENTRYPOINT:
SCRIPT_NAME environment variable.requirements.txt is reinstalled on each run for up-to-date dependencies.This image is ideal for automated testing, web scraping, or any headless browser automation tasks using Selenium with Python.
Content type
Image
Digest
sha256:237f3a9aa…
Size
320.6 MB
Last updated
almost 2 years ago
docker pull pak00329/selenium_python_chrome_lite