Skip to content

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.

chore: copy tsconfig in crawlee templates

Martin Adámek19d6a4b23c44
diff --git a/packages/templates/templates/cheerio-ts/Dockerfile b/packages/templates/templates/cheerio-ts/Dockerfile
index c28874341..a2d94e6cc 100644
--- a/packages/templates/templates/cheerio-ts/Dockerfile
+++ b/packages/templates/templates/cheerio-ts/Dockerfile
@@ -5,7 +5,7 @@ FROM apify/actor-node:16 AS builder
# Second, copy the TS source files, package.json and package-lock.json since it should be
# the only files that affects the installation and build in the next step
-COPY package*.json crawlee?json ./
+COPY package*.json tsconfig.json crawlee?json ./
COPY src ./src
# Install all dependencies (including dev deps) and build the project
@@ -16,7 +16,6 @@ FROM apify/actor-node:16
# Copy only necessary files (crawlee.json might not exist, so we need the regexp trick with `crawlee?json`)
COPY --from=builder /usr/src/app/package.json /usr/src/app/crawlee?json ./
-COPY --from=builder /usr/src/app/README.md ./
COPY --from=builder /usr/src/app/dist ./dist
# Install only prod deps
diff --git a/packages/templates/templates/playwright-ts/Dockerfile b/packages/templates/templates/playwright-ts/Dockerfile
index 03cb19e3a..8ffc524b0 100644
--- a/packages/templates/templates/playwright-ts/Dockerfile
+++ b/packages/templates/templates/playwright-ts/Dockerfile
@@ -5,7 +5,7 @@ FROM apify/actor-node:16 AS builder
# Second, copy the TS source files, package.json and package-lock.json since it should be
# the only files that affects the installation and build in the next step
-COPY package*.json crawlee?json ./
+COPY package*.json tsconfig.json crawlee?json ./
COPY src ./src
# Install all dependencies (including dev deps) and build the project
@@ -16,7 +16,6 @@ FROM apify/actor-node-playwright-chrome:16
# Copy only necessary files (crawlee.json might not exist, so we need the regexp trick with `crawlee?json`)
COPY --from=builder /usr/src/app/package.json /usr/src/app/crawlee?json ./
-COPY --from=builder /usr/src/app/README.md ./
COPY --from=builder /usr/src/app/dist ./dist
# Install only prod deps
diff --git a/packages/templates/templates/puppeteer-ts/Dockerfile b/packages/templates/templates/puppeteer-ts/Dockerfile
index 8852839c6..18b9acee4 100644
--- a/packages/templates/templates/puppeteer-ts/Dockerfile
+++ b/packages/templates/templates/puppeteer-ts/Dockerfile
@@ -5,7 +5,7 @@ FROM apify/actor-node:16 AS builder
# Second, copy the TS source files, package.json and package-lock.json since it should be
# the only files that affects the installation and build in the next step
-COPY package*.json crawlee?json ./
+COPY package*.json tsconfig.json crawlee?json ./
COPY src ./src
# Install all dependencies (including dev deps) and build the project
@@ -16,7 +16,6 @@ FROM apify/actor-node-puppeteer-chrome:16
# Copy only necessary files (crawlee.json might not exist, so we need the regexp trick with `crawlee?json`)
COPY --from=builder /usr/src/app/package.json /usr/src/app/crawlee?json ./
-COPY --from=builder /usr/src/app/README.md ./
COPY --from=builder /usr/src/app/dist ./dist
# Install only prod deps