Skip to content

Commit

Permalink
refactor: update Dockerfile entrypoint command
Browse files Browse the repository at this point in the history
Update the Dockerfile entrypoint command to include running the 'bun prisma migrate deploy' command before starting the server.
  • Loading branch information
schettn committed Jun 6, 2024
1 parent 47d536a commit c7418b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit c7418b5

Please sign in to comment.