Copy Prisma engine to bundled code locations
This commit is contained in:
@@ -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)
|
# 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
|
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
|
# Set up initial data directory template
|
||||||
RUN mkdir -p /tmp/data/.blinko
|
RUN mkdir -p /tmp/data/.blinko
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user