Skip to content

Why not run Drizzle Migrations inside Dockerfile? Why a separate scripts/run.sh is used to run migrations? #1904

Discussion options

You must be logged in to vote

@Meierschlumpf i found your solution a bit complicated & couldn't get it to work. i didn't understand how you installed package.json in migrations... I mean I did see yarn but I didn't understand how you used it outside of it but I found a simpler answer after a week of juggling with this. Its probably much simpler than yours I think. Take a look if you want & thanks for the answer. Your solution was a step in the right direction. Otherwise I would still be struggling.

EDIT: I came to the same conclusion as you guys. On my main repo, it was taking to long because node_modules that I was copying in the final stage was too big. So I created package.json just for migrations & came to the sam…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@deadcoder0904
Comment options

@Meierschlumpf
Comment options

@ajnart
Comment options

Comment options

You must be logged in to vote
1 reply
@Meierschlumpf
Comment options

Answer selected by deadcoder0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants