Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions node-playwright-camoufox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ARG NODE_VERSION=20
# Use bookworm to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-bookworm-slim
# Use trixie to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-trixie-slim

Check warning on line 3 in node-playwright-camoufox/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-camoufox node: 24, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-playwright-camoufox/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-camoufox node: 20, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-playwright-camoufox/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-camoufox node: 22, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

LABEL maintainer="[email protected]" description="Base image for Apify Actors using Camoufox"
ENV DEBIAN_FRONTEND=noninteractive

COPY ./register_intermediate_certs.sh ./register_intermediate_certs.sh

# Install Firefox dependencies + tools
RUN sh -c 'echo "deb http://ftp.us.debian.org/debian bookworm main non-free" >> /etc/apt/sources.list.d/fonts.list' \
RUN sh -c 'echo "deb http://ftp.us.debian.org/debian trixie main non-free" >> /etc/apt/sources.list.d/fonts.list' \
&& apt update \
&& apt install -y --no-install-recommends \
# Found this in other images, not sure whether it's needed, it does not come from Playwright deps
Expand Down
16 changes: 10 additions & 6 deletions node-playwright-chrome/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG NODE_VERSION=20
# Use bookworm to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-bookworm-slim
# Use trixie to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-trixie-slim

Check warning on line 3 in node-playwright-chrome/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-chrome node: 20, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-playwright-chrome/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-chrome node: 24, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-playwright-chrome/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-chrome node: 22, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

LABEL maintainer="[email protected]" description="Base image for Apify Actors using Chrome"
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -14,9 +14,13 @@
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' \
# Add Google Linux signing key
&& wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \
| gpg --dearmor \
| tee /usr/share/keyrings/google-linux-signing.gpg > /dev/null \
# Add Google Chrome APT repo
&& sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-linux-signing.gpg] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' \
&& sh -c 'echo "deb http://ftp.us.debian.org/debian trixie main non-free" >> /etc/apt/sources.list.d/fonts.list' \
&& apt update \
&& apt purge --auto-remove -y wget unzip \
&& apt install -y \
Expand All @@ -26,7 +30,7 @@
procps \
# Extras
fonts-freefont-ttf \
fonts-kacst \
fonts-kacst-one \
fonts-thai-tlwg \
fonts-wqy-zenhei \
--no-install-recommends \
Expand Down
6 changes: 3 additions & 3 deletions node-playwright-firefox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ARG NODE_VERSION=20
# Use bookworm to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-bookworm-slim
# Use trixie to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-trixie-slim

Check warning on line 3 in node-playwright-firefox/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-firefox node: 22, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-playwright-firefox/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-firefox node: 24, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-playwright-firefox/Dockerfile

View workflow job for this annotation

GitHub Actions / img: node-playwright-firefox node: 20, apify: ^3.5.2, crawlee: ^3.15.3, pw: 1.57.0, cf: ^0.8.4, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

LABEL maintainer="[email protected]" description="Base image for Apify Actors using Firefox"
ENV DEBIAN_FRONTEND=noninteractive

COPY ./register_intermediate_certs.sh ./register_intermediate_certs.sh

# Install Firefox dependencies + tools
RUN sh -c 'echo "deb http://ftp.us.debian.org/debian bookworm main non-free" >> /etc/apt/sources.list.d/fonts.list' \
RUN sh -c 'echo "deb http://ftp.us.debian.org/debian trixie main non-free" >> /etc/apt/sources.list.d/fonts.list' \
&& apt update \
&& apt install -y --no-install-recommends \
# Found this in other images, not sure whether it's needed, it does not come from Playwright deps
Expand Down
16 changes: 10 additions & 6 deletions node-puppeteer-chrome/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG NODE_VERSION=20
# Use bookworm to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-bookworm-slim
# Use trixie to be consistent across node versions.
FROM --platform=linux/amd64 node:${NODE_VERSION}-trixie-slim

Check warning on line 3 in node-puppeteer-chrome/Dockerfile

View workflow job for this annotation

GitHub Actions / node: 24, apify: ^3.5.2, crawlee: ^3.15.3, pptr: 24.33.1, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-puppeteer-chrome/Dockerfile

View workflow job for this annotation

GitHub Actions / node: 20, apify: ^3.5.2, crawlee: ^3.15.3, pptr: 24.33.1, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

Check warning on line 3 in node-puppeteer-chrome/Dockerfile

View workflow job for this annotation

GitHub Actions / node: 22, apify: ^3.5.2, crawlee: ^3.15.3, pptr: 24.33.1, is-latest: true

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

LABEL maintainer="[email protected]" description="Base image for Apify Actors using headless Chrome"
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -11,15 +11,19 @@
# Note: this also installs the necessary libs to make the bundled version of Chromium that Puppeteer installs work.
RUN apt update \
&& apt install -y wget gnupg unzip ca-certificates --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb 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' \
# Add Google Linux signing key
&& wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \
| gpg --dearmor \
| tee /usr/share/keyrings/google-linux-signing.gpg > /dev/null \
# Add Google Chrome APT repo
&& sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-linux-signing.gpg] 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 trixie main non-free" >> /etc/apt/sources.list.d/fonts.list' \
&& apt update \
&& apt purge --auto-remove -y unzip \
&& apt install -y \
fonts-freefont-ttf \
fonts-ipafont-gothic \
fonts-kacst \
fonts-kacst-one \
fonts-liberation \
fonts-thai-tlwg \
fonts-wqy-zenhei \
Expand Down
Loading