Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
chore: use node 20 in templates
Martin Adámekd0c6817640c3
diff --git a/packages/templates/templates/cheerio-js/Dockerfile b/packages/templates/templates/cheerio-js/Dockerfileindex 2c140d5bf..4c8d11fc3 100644--- a/packages/templates/templates/cheerio-js/Dockerfile+++ b/packages/templates/templates/cheerio-js/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node:18+FROM apify/actor-node:20# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.diff --git a/packages/templates/templates/cheerio-ts/Dockerfile b/packages/templates/templates/cheerio-ts/Dockerfileindex 8d7d45836..995a3d815 100644--- a/packages/templates/templates/cheerio-ts/Dockerfile+++ b/packages/templates/templates/cheerio-ts/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node:18 AS builder+FROM apify/actor-node:20 AS builder# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.@@ -19,7 +19,7 @@ COPY . ./RUN npm run build# Create final image-FROM apify/actor-node:18+FROM apify/actor-node:20# Copy only built JS files from builder imageCOPY --from=builder /usr/src/app/dist ./distdiff --git a/packages/templates/templates/getting-started-js/Dockerfile b/packages/templates/templates/getting-started-js/Dockerfileindex 42c02ffb1..6e804b93a 100644--- a/packages/templates/templates/getting-started-js/Dockerfile+++ b/packages/templates/templates/getting-started-js/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node-playwright-chrome:18+FROM apify/actor-node-playwright-chrome:20# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.diff --git a/packages/templates/templates/getting-started-ts/Dockerfile b/packages/templates/templates/getting-started-ts/Dockerfileindex f23442a2b..1fe6784a4 100644--- a/packages/templates/templates/getting-started-ts/Dockerfile+++ b/packages/templates/templates/getting-started-ts/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node-playwright-chrome:18 AS builder+FROM apify/actor-node-playwright-chrome:20 AS builder# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.@@ -19,7 +19,7 @@ COPY --chown=myuser . ./RUN npm run build# Create final image-FROM apify/actor-node-playwright-chrome:18+FROM apify/actor-node-playwright-chrome:20# Copy only built JS files from builder imageCOPY --from=builder --chown=myuser /home/myuser/dist ./distdiff --git a/packages/templates/templates/playwright-js/Dockerfile b/packages/templates/templates/playwright-js/Dockerfileindex 2e6e5027f..edf60c820 100644--- a/packages/templates/templates/playwright-js/Dockerfile+++ b/packages/templates/templates/playwright-js/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node-playwright-chrome:18+FROM apify/actor-node-playwright-chrome:20# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.diff --git a/packages/templates/templates/playwright-ts/Dockerfile b/packages/templates/templates/playwright-ts/Dockerfileindex f23442a2b..1fe6784a4 100644--- a/packages/templates/templates/playwright-ts/Dockerfile+++ b/packages/templates/templates/playwright-ts/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node-playwright-chrome:18 AS builder+FROM apify/actor-node-playwright-chrome:20 AS builder# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.@@ -19,7 +19,7 @@ COPY --chown=myuser . ./RUN npm run build# Create final image-FROM apify/actor-node-playwright-chrome:18+FROM apify/actor-node-playwright-chrome:20# Copy only built JS files from builder imageCOPY --from=builder --chown=myuser /home/myuser/dist ./distdiff --git a/packages/templates/templates/puppeteer-js/Dockerfile b/packages/templates/templates/puppeteer-js/Dockerfileindex a6dcb4b12..fa86c423f 100644--- a/packages/templates/templates/puppeteer-js/Dockerfile+++ b/packages/templates/templates/puppeteer-js/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node-puppeteer-chrome:18+FROM apify/actor-node-puppeteer-chrome:20# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.diff --git a/packages/templates/templates/puppeteer-ts/Dockerfile b/packages/templates/templates/puppeteer-ts/Dockerfileindex d0f9936ff..292b6f4a1 100644--- a/packages/templates/templates/puppeteer-ts/Dockerfile+++ b/packages/templates/templates/puppeteer-ts/Dockerfile@@ -1,7 +1,7 @@# Specify the base Docker image. You can read more about# the available images at https://crawlee.dev/docs/guides/docker-images# You can also use any other image from Docker Hub.-FROM apify/actor-node-puppeteer-chrome:18 AS builder+FROM apify/actor-node-puppeteer-chrome:20 AS builder# Copy just package.json and package-lock.json# to speed up the build using Docker layer cache.@@ -19,7 +19,7 @@ COPY --chown=myuser . ./RUN npm run build# Create final image-FROM apify/actor-node-puppeteer-chrome:18+FROM apify/actor-node-puppeteer-chrome:20# Copy only built JS files from builder imageCOPY --from=builder --chown=myuser /home/myuser/dist ./dist