docker fixes
All checks were successful
Build and Push Docker Image / build (push) Successful in 56s

This commit is contained in:
Garret Patti
2026-04-14 08:25:12 -04:00
parent b25774d928
commit 19756c9eab
2 changed files with 5 additions and 1 deletions

View File

@@ -45,6 +45,10 @@ COPY --from=builder /app/.next/static ./.next/static
COPY --from=deps /app/node_modules/better-sqlite3 ./node_modules/better-sqlite3
COPY --from=deps /app/node_modules/sharp ./node_modules/sharp
COPY --from=deps /app/node_modules/@img ./node_modules/@img
# tesseract.js loads its worker via worker_threads using a runtime-constructed path,
# so the standalone file tracer never discovers src/worker-script/node/. Copy the
# full package so that path resolves correctly at runtime.
COPY --from=deps /app/node_modules/tesseract.js ./node_modules/tesseract.js
# Create thumbnail cache directory (mounted as a volume in production)
RUN mkdir -p /app/.thumbnails

View File

@@ -2,7 +2,7 @@ import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
output: 'standalone',
serverExternalPackages: ['better-sqlite3', 'sharp'],
serverExternalPackages: ['better-sqlite3', 'sharp', 'tesseract.js'],
}
export default nextConfig