summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authoryyamashita <yyamashita@mosquit.one>2026-05-08 04:08:48 +0900
committeryyamashita <yyamashita@mosquit.one>2026-05-08 04:08:48 +0900
commit9f8ab9f4818ed9af3cbe8914f03d954ec86c7d12 (patch)
treec27f7a0e8f13060a3b449090d4c0a4d0798db7f2 /Dockerfile
parentcfbcf4062acdd5de30863097fde4d4b29cb4c558 (diff)
Fix scraper Docker build: copy package-lock.json into playwright-base
Without the lock file, npm install tsx resolved @react-router/dev to its latest version (7.15.0), which has a peer dependency conflict with the installed react-router@7.3.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 25c36dd..0bc37da 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,7 +20,7 @@ RUN --mount=type=cache,target=/root/.npm \
FROM node:20-slim AS playwright-base
WORKDIR /app
-COPY package.json ./
+COPY package.json package-lock.json ./
COPY --from=prod-deps /app/node_modules ./node_modules
RUN npx playwright install chromium --with-deps