Files
browser-use/docker/base-images/chromium/Dockerfile
2025-08-26 17:34:48 -07:00

16 lines
633 B
Docker

ARG BASE_TAG=latest
FROM browseruse/base-system:${BASE_TAG}
WORKDIR /tmp
COPY pyproject.toml ./
# Install chromium browser using temporary playwright installation
RUN --mount=type=cache,target=/root/.cache,sharing=locked \
echo "Installing chromium browser via temporary playwright..." && \
pip install --no-cache-dir playwright && \
PLAYWRIGHT_BROWSERS_PATH=/opt/playwright playwright install chromium --with-deps --no-shell && \
ln -s /opt/playwright/chromium-*/chrome-linux/chrome /usr/bin/chromium-browser && \
chmod -R 755 /opt/playwright && \
pip uninstall playwright -y && \
rm -f pyproject.toml