From 446ffe83a2043636ffe99691454e843ef9fb179f Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sat, 9 May 2026 00:38:42 +0900 Subject: Fix Docker startup: add package.json to app stage, respect DB_PATH npm start requires package.json in the working directory. Also wire up the DB_PATH env var so the DB is created inside the mounted volume. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 45c4813..a8e0833 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ RUN --mount=type=cache,target=/root/.npm \ FROM node:20-alpine AS app WORKDIR /app +COPY package.json ./ COPY --from=prod-deps /app/node_modules ./node_modules COPY --from=build /app/build ./build RUN mkdir -p /app/data -- cgit v1.2.3