diff --git a/Dockerfile b/Dockerfile index 7c5d04d..4fda72e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,8 @@ RUN apk add --no-cache python3 make g++ WORKDIR /app RUN corepack enable pnpm COPY package.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile -# Verify native binding was built -RUN find node_modules -name "better_sqlite3.node" && echo "--- binding found ---" +RUN pnpm install --frozen-lockfile && pnpm rebuild better-sqlite3 +RUN find node_modules -name "better_sqlite3.node" || (echo "FATAL: binding not found" && exit 1) COPY . . RUN pnpm run build # Keep only build tools cleanup that won't remove sqlite-libs