Update Dockerfile to install prisma globally

Prisma is a dev dependency in the main project. However, it is
needed in the image so we can run the migrations before starting
the server up. This installs it globally in the image since it
won't be installed using the project's `package.json`.

Signed-off-by: Alex Sears <me@alexsears.com>
This commit is contained in:
Alex Sears
2022-02-18 15:12:09 -05:00
parent 05560ff1a3
commit 60557d31fd
2 changed files with 5 additions and 2 deletions

View File

@@ -2,5 +2,5 @@
set -x
/calcom/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
# npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
yarn start