Luis
PPrisma
•Created by Luis on 4/2/2025 in #help-and-questions
Automatically create SQLite database and run Prisma migrations in Docker for Next.js app
I have a Dockerfile that builds a Next.js application using Prisma with a SQLite database. I'd like to know if there's a recommended or automated way to create the SQLite database file and run the necessary Prisma migrations directly inside the Docker container, before the Next.js app starts. What's the best practice to achieve this setup?
2 replies