From c7418b53e66e9cd88da1f870d98967d46dbf5923 Mon Sep 17 00:00:00 2001 From: Nico Schett Date: Thu, 6 Jun 2024 08:34:04 +0200 Subject: [PATCH] refactor: update Dockerfile entrypoint command Update the Dockerfile entrypoint command to include running the 'bun prisma migrate deploy' command before starting the server. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 90bb794..2db1620 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,4 +56,4 @@ COPY --from=prerelease /usr/src/pylon/prisma prisma # run the app USER bun EXPOSE 3000/tcp -ENTRYPOINT [ "bun", "run", "./node_modules/.bin/pylon-server" ] +ENTRYPOINT ["sh", "-c", "bun prisma migrate deploy && bun run ./node_modules/.bin/pylon-server"]