In a nutshell , you can’t run RUN npx prisma migrate deploy since it’s executed at the build time of your container and the build process does not have access to your database. I would recommend using an entrypoint.sh and executing the migrate command before that your node process starts. You can take a look at this guide.