@detiq/crawler 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Dockerfile +8 -0
  2. package/package.json +1 -1
package/Dockerfile CHANGED
@@ -5,6 +5,9 @@
5
5
  FROM mcr.microsoft.com/playwright:v1.55.0-jammy AS runner
6
6
  WORKDIR /app
7
7
  ENV NODE_ENV=production
8
+ # Install browsers to a fixed path — base image ships browsers here and
9
+ # we override after npm ci to match the exact installed playwright revision.
10
+ ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
8
11
 
9
12
  # Install Node.js 20 (Playwright base image ships with 18)
10
13
  RUN apt-get update && apt-get install -y curl && \
@@ -21,6 +24,11 @@ COPY packages/agents/package.json packages/agents/
21
24
  COPY packages/crawler/package.json packages/crawler/
22
25
  RUN npm ci
23
26
 
27
+ # Re-install chromium after npm ci so the browser revision matches the
28
+ # exact playwright version resolved by the lockfile (not the base image's
29
+ # bundled version, which may differ if the lockfile was updated).
30
+ RUN npx playwright install chromium
31
+
24
32
  # Source
25
33
  COPY tsconfig.base.json ./
26
34
  COPY packages/core packages/core
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@detiq/crawler",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
6
6
  "type": "module",