diff --git a/Dockerfile b/Dockerfile index 1be8a55..3fa97a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,10 @@ RUN if [ -d /tmp/blinko/public ]; then cp -r /tmp/blinko/public /app/code/public # Regenerate Prisma client for the runtime environment (cloudron base uses OpenSSL 3.0) RUN cd /app/code && npx prisma generate --schema=/app/code/prisma/schema.prisma +# Copy Prisma engine to locations where the bundled code expects it +RUN cp /app/code/node_modules/.prisma/client/*.node /app/code/dist/ 2>/dev/null || true +RUN cp /app/code/node_modules/.prisma/client/*.node /app/code/node_modules/@prisma/client/ 2>/dev/null || true + # Set up initial data directory template RUN mkdir -p /tmp/data/.blinko