docker.io/apify/actor-node-playwright-chrome:20-1.49.1 linux/amd64

docker.io/apify/actor-node-playwright-chrome:20-1.49.1 - 国内下载镜像源 浏览次数:59
```html

docker.io/apify/actor-node-playwright-chrome 镜像描述

这是一个Apify提供的Docker镜像,基于Node.js和Playwright,预装了Chromium浏览器。它旨在简化使用Playwright进行网页抓取和自动化操作的过程。开发者可以使用这个镜像快速构建和运行Playwright脚本,无需手动安装和配置必要的依赖项。

镜像内包含了Playwright、Chromium以及Node.js运行时环境,方便用户直接运行基于Playwright的爬虫或自动化脚本。这减少了开发者的设置工作,并确保了环境的一致性。

适合需要在Docker容器中使用Playwright进行网页自动化任务的场景,例如网络数据抓取、测试自动化等等。

```
源镜像 docker.io/apify/actor-node-playwright-chrome:20-1.49.1
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1
镜像ID sha256:a15f278ab7e1d8939c4bd9ef69d44af95280b377a36931ccfc869b009d7e6f0f
镜像TAG 20-1.49.1
大小 2.26GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh -c ./new_xvfb_run_cmd.sh npm start --silent
启动入口 docker-entrypoint.sh
工作目录 /home/myuser
OS/平台 linux/amd64
浏览量 59 次
贡献者
镜像创建 2025-03-18T12:15:38.718916092Z
同步时间 2025-03-19 11:10
更新时间 2025-04-03 20:21
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_VERSION=20.19.0 YARN_VERSION=1.22.22 DEBIAN_FRONTEND=noninteractive PLAYWRIGHT_BROWSERS_PATH=/home/myuser/pw-browsers APIFY_CHROME_EXECUTABLE_PATH=/usr/bin/google-chrome CRAWLEE_SKIP_BROWSER_INSTALL=1 NODE_ENV=production NODE_OPTIONS=--max_old_space_size=30000 --max-http-header-size=80000 APIFY_DEFAULT_BROWSER_PATH=/home/myuser/pw-browsers/chrome PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 DISPLAY=:99 XVFB_WHD=1920x1080x24+32
镜像标签
Base image for Apify Actors using Chrome: description support@apify.com: maintainer

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1  docker.io/apify/actor-node-playwright-chrome:20-1.49.1

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1  docker.io/apify/actor-node-playwright-chrome:20-1.49.1

Shell快速替换命令

sed -i 's#apify/actor-node-playwright-chrome:20-1.49.1#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1  docker.io/apify/actor-node-playwright-chrome:20-1.49.1'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1  docker.io/apify/actor-node-playwright-chrome:20-1.49.1'

镜像构建历史


# 2025-03-18 20:15:38  0.00B 设置默认要执行的命令
CMD ["/bin/sh" "-c" "./new_xvfb_run_cmd.sh npm start --silent"]
                        
# 2025-03-18 20:15:38  0.00B 设置环境变量 XVFB_WHD
ENV XVFB_WHD=1920x1080x24+32
                        
# 2025-03-18 20:15:38  0.00B 设置环境变量 DISPLAY
ENV DISPLAY=:99
                        
# 2025-03-18 20:15:38  0.00B 设置环境变量 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
                        
# 2025-03-18 20:15:38  0.00B 设置环境变量 APIFY_DEFAULT_BROWSER_PATH
ENV APIFY_DEFAULT_BROWSER_PATH=/home/myuser/pw-browsers/chrome
                        
# 2025-03-18 20:15:38  1.21GB 执行命令并创建新的镜像层
RUN /bin/sh -c npm --quiet set progress=false     && npm install --omit=dev --omit=optional --no-package-lock --prefer-online     && echo "Installed NPM packages:"     && (npm list --omit=dev --omit=optional || true)     && echo "Node.js version:"     && node --version     && echo "NPM version:"     && npm --version     && echo "Google Chrome version:"     && bash -c "$APIFY_CHROME_EXECUTABLE_PATH --version"     && ln -s ${PLAYWRIGHT_BROWSERS_PATH}/chromium-*/chrome-linux/chrome ${PLAYWRIGHT_BROWSERS_PATH}/     && mv ./node_modules/playwright-chromium ./node_modules/playwright && rm -rf ./node_modules/playwright-chromium # buildkit
                        
# 2025-03-18 20:15:13  0.00B 设置环境变量 NODE_OPTIONS --max-http-header-size
ENV NODE_OPTIONS=--max_old_space_size=30000 --max-http-header-size=80000
                        
# 2025-03-18 20:15:13  0.00B 设置环境变量 NODE_ENV
ENV NODE_ENV=production
                        
# 2025-03-18 20:15:13  0.00B 设置环境变量 CRAWLEE_SKIP_BROWSER_INSTALL
ENV CRAWLEE_SKIP_BROWSER_INSTALL=1
                        
# 2025-03-18 20:15:13  0.00B 设置环境变量 APIFY_CHROME_EXECUTABLE_PATH
ENV APIFY_CHROME_EXECUTABLE_PATH=/usr/bin/google-chrome
                        
# 2025-03-18 20:15:13  3.38KB 复制新文件或目录到容器中
COPY --chown=myuser:myuser package.json main.js chrome_test.js start_xvfb_and_run_cmd.sh new_xvfb_run_cmd.sh /home/myuser/ # buildkit
                        
# 2025-03-18 20:15:13  0.00B 设置环境变量 PLAYWRIGHT_BROWSERS_PATH
ENV PLAYWRIGHT_BROWSERS_PATH=/home/myuser/pw-browsers
                        
# 2025-03-18 20:15:13  0.00B 设置工作目录为/home/myuser
WORKDIR /home/myuser
                        
# 2025-03-18 20:15:13  0.00B 指定运行容器时使用的用户
USER myuser
                        
# 2025-03-18 20:15:13  850.41MB 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir -p /etc/default && echo 'repo_add_once=false' > /etc/default/google-chrome     && apt update     && apt install -y wget gnupg unzip ca-certificates xvfb xauth --no-install-recommends     && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -     && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'     && sh -c 'echo "deb http://ftp.us.debian.org/debian bookworm main non-free" >> /etc/apt/sources.list.d/fonts.list'     && apt update     && apt purge --auto-remove -y wget unzip     && apt install -y     git     google-chrome-stable     procps     fonts-freefont-ttf     fonts-kacst     fonts-thai-tlwg     fonts-wqy-zenhei     --no-install-recommends         && groupadd -r myuser && useradd -r -g myuser -G audio,video myuser     && mkdir -p /home/myuser/Downloads     && chown -R myuser:myuser /home/myuser         && mkdir -p /etc/opt/chrome/policies/managed     && echo '{ "CommandLineFlagSecurityWarningsEnabled": false }' > /etc/opt/chrome/policies/managed/managed_policies.json     && echo '{ "ComponentUpdatesEnabled": false }' > /etc/opt/chrome/policies/managed/component_update.json         && npm config --global set update-notifier false     && PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm_config_ignore_scripts=1 npx playwright install-deps chrome     && rm -rf /var/lib/apt/lists/*     && rm -rf /src/*.deb     && apt clean -y && apt autoremove -y     && rm -rf /root/.npm     && mkdir -p /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix # buildkit
                        
# 2025-03-18 20:15:13  0.00B 设置环境变量 DEBIAN_FRONTEND
ENV DEBIAN_FRONTEND=noninteractive
                        
# 2025-03-18 20:15:13  0.00B 添加元数据标签
LABEL maintainer=support@apify.com description=Base image for Apify Actors using Chrome
                        
# 2025-03-13 22:48:02  0.00B 设置默认要执行的命令
CMD ["node"]
                        
# 2025-03-13 22:48:02  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
                        
# 2025-03-13 22:48:02  388.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
                        
# 2025-03-13 22:48:02  7.18MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex   && savedAptMark="$(apt-mark showmanual)"   && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends   && rm -rf /var/lib/apt/lists/*   && export GNUPGHOME="$(mktemp -d)"   && for key in     6A010C5166006599AA17F08146C2130DFD2497F5   ; do     gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" ||     gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ;   done   && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz"   && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc"   && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz   && gpgconf --kill all   && rm -rf "$GNUPGHOME"   && mkdir -p /opt   && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/   && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn   && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg   && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz   && apt-mark auto '.*' > /dev/null   && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; }   && find /usr/local -type f -executable -exec ldd '{}' ';'     | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }'     | sort -u     | xargs -r dpkg-query --search     | cut -d: -f1     | sort -u     | xargs -r apt-mark manual   && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false   && yarn --version   && rm -rf /tmp/* # buildkit
                        
# 2025-03-13 22:48:02  0.00B 设置环境变量 YARN_VERSION
ENV YARN_VERSION=1.22.22
                        
# 2025-03-13 22:48:02  118.84MB 执行命令并创建新的镜像层
RUN /bin/sh -c ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)"     && case "${dpkgArch##*-}" in       amd64) ARCH='x64' OPENSSL_ARCH='linux-x86_64';;       ppc64el) ARCH='ppc64le' OPENSSL_ARCH='linux-ppc64le';;       s390x) ARCH='s390x' OPENSSL_ARCH='linux*-s390x';;       arm64) ARCH='arm64' OPENSSL_ARCH='linux-aarch64';;       armhf) ARCH='armv7l' OPENSSL_ARCH='linux-armv4';;       i386) ARCH='x86' OPENSSL_ARCH='linux-elf';;       *) echo "unsupported architecture"; exit 1 ;;     esac     && set -ex     && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends     && rm -rf /var/lib/apt/lists/*     && export GNUPGHOME="$(mktemp -d)"     && for key in       C0D6248439F1D5604AAFFB4021D900FFDB233756       DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7       CC68F5A3106FF448322E48ED27F5E38D5B0A215F       8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600       890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4       C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C       108F52B48DB57BB0CC439B2997B01419BD92F80A       A363A499291CBBC940DD62E41F10027AF002F8B0     ; do       gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" ||       gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ;     done     && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz"     && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc"     && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc     && gpgconf --kill all     && rm -rf "$GNUPGHOME"     && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c -     && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner     && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt     && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \;     && apt-mark auto '.*' > /dev/null     && find /usr/local -type f -executable -exec ldd '{}' ';'       | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }'       | sort -u       | xargs -r dpkg-query --search       | cut -d: -f1       | sort -u       | xargs -r apt-mark manual     && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false     && ln -s /usr/local/bin/node /usr/local/bin/nodejs     && node --version     && npm --version # buildkit
                        
# 2025-03-13 22:48:02  0.00B 设置环境变量 NODE_VERSION
ENV NODE_VERSION=20.19.0
                        
# 2025-03-13 22:48:02  8.90KB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd --gid 1000 node   && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit
                        
# 2025-03-13 22:48:02  74.78MB 
# debian.sh --arch 'amd64' out/ 'bookworm' '@1742169600'
                        
                    

镜像信息

{
    "Id": "sha256:a15f278ab7e1d8939c4bd9ef69d44af95280b377a36931ccfc869b009d7e6f0f",
    "RepoTags": [
        "apify/actor-node-playwright-chrome:20-1.49.1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome:20-1.49.1"
    ],
    "RepoDigests": [
        "apify/actor-node-playwright-chrome@sha256:370d28adc5544760abad769d9278831e40aac80e45162f943f9467a6450eaa15",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apify/actor-node-playwright-chrome@sha256:370d28adc5544760abad769d9278831e40aac80e45162f943f9467a6450eaa15"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-03-18T12:15:38.718916092Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "myuser",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "NODE_VERSION=20.19.0",
            "YARN_VERSION=1.22.22",
            "DEBIAN_FRONTEND=noninteractive",
            "PLAYWRIGHT_BROWSERS_PATH=/home/myuser/pw-browsers",
            "APIFY_CHROME_EXECUTABLE_PATH=/usr/bin/google-chrome",
            "CRAWLEE_SKIP_BROWSER_INSTALL=1",
            "NODE_ENV=production",
            "NODE_OPTIONS=--max_old_space_size=30000 --max-http-header-size=80000",
            "APIFY_DEFAULT_BROWSER_PATH=/home/myuser/pw-browsers/chrome",
            "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1",
            "DISPLAY=:99",
            "XVFB_WHD=1920x1080x24+32"
        ],
        "Cmd": [
            "/bin/sh",
            "-c",
            "./new_xvfb_run_cmd.sh npm start --silent"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/home/myuser",
        "Entrypoint": [
            "docker-entrypoint.sh"
        ],
        "OnBuild": null,
        "Labels": {
            "description": "Base image for Apify Actors using Chrome",
            "maintainer": "support@apify.com"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 2256319823,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/909a6576977317080681b3037bcf16f5de9e165b485da9d1048f678bdb8b7909/diff:/var/lib/docker/overlay2/eef15e736d2a9ea3eb402d7604a9f09a10640f602755ceabf18965d732c67140/diff:/var/lib/docker/overlay2/670d2cb6f3cbddc55c50e895148211d0fdcb374768f8a111f59453e1514356e1/diff:/var/lib/docker/overlay2/1734af99588b882c51bb513b232dfeaa4249c4332b8fc5de2fba60825a347c4b/diff:/var/lib/docker/overlay2/1bc44d2a64cf5c5c90aa832eb3f34793deb0bd5050a65d34f48dfa0689eef411/diff:/var/lib/docker/overlay2/ea8c280042598468191f141c8560656b5b53880bac13fb5332ff22edf9cb3d0a/diff:/var/lib/docker/overlay2/14323cd6273a5b61a6cecb889f2099156ea6fb7f4040eec9b909a9a673f0d545/diff:/var/lib/docker/overlay2/7295d95395d04ab7dfa97ead24c0ca9b06125f4f3277903f0a1a9d60d3c5e7ca/diff",
            "MergedDir": "/var/lib/docker/overlay2/e17b2c978558d7f4db9c968cff1c3db302e072394f9936707a53f008c386e689/merged",
            "UpperDir": "/var/lib/docker/overlay2/e17b2c978558d7f4db9c968cff1c3db302e072394f9936707a53f008c386e689/diff",
            "WorkDir": "/var/lib/docker/overlay2/e17b2c978558d7f4db9c968cff1c3db302e072394f9936707a53f008c386e689/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1287fbecdfcce6ee8cf2436e5b9e9d86a4648db2d91080377d499737f1b307f3",
            "sha256:b676626e7095959143cb5dc38536471a477cd83817d38c3181fffd837d25ca47",
            "sha256:217ba8cc69caa13c794fc307f554f253cff779c07ab6b32d21017b369a83364e",
            "sha256:be53931a3313c24d50e40b6787f4ce7bf5aa2e7578cd8529949954c7f49c902a",
            "sha256:12708e72ed656e2f39a536cec0359b98fa4a94e332633ba94ab01427945d2711",
            "sha256:d73a5030603204b978f1165a7e31f3aa6eb1283ca8e4e7119ee47253afdf9154",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:4622d21de281ef5af05e3f726e1ecab6a1a4e5c4a7b482eac36d20d4614747b9",
            "sha256:794f7bec519ef4c08e97b58c107051cf3b91d67b3ae5ab1c99dae794f335eb8a"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-03-19T11:08:52.530641208+08:00"
    }
}

更多版本

docker.io/apify/actor-node-playwright-chrome:20

linux/amd64 docker.io2.26GB2025-02-25 15:23
116

docker.io/apify/actor-node-playwright-chrome:20-1.49.1

linux/amd64 docker.io2.26GB2025-03-19 11:10
58