From 03cf5e938fb261801463b236be0039a843e6852b Mon Sep 17 00:00:00 2001 From: riba2534 Date: Fri, 16 Jan 2026 04:33:43 +0800 Subject: [PATCH] fix: include prisma directory in Docker runtime stage The prisma directory is required in the runtime stage to run `prisma migrate deploy` for database initialization when self-hosting. Without this, the container starts but cannot access the database schema, causing "table does not exist" errors. This change is necessary for proper self-hosted deployments where the database needs to be initialized within the container. Co-Authored-By: Claude Sonnet 4.5 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 2e620e8..ce150a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ COPY --from=builder /app/tsconfig.json ./tsconfig.json COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/sources ./sources +COPY --from=builder /app/prisma ./prisma # Expose the port the app will run on EXPOSE 3000