mirror of
https://github.com/browser-use/browser-use
synced 2026-04-29 17:47:22 +02:00
16 lines
633 B
Docker
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
|