ataractic
ataractic12mo ago

Dockerfile saaskit deployment

I created an entry in deno.json starting a script named db:init to initialize my KV DB with an user. When I add the RUN statement to initialize the DB before starting the app, it simply doesnt work. How can I make it work?
No description
6 Replies
ioB
ioB12mo ago
What does "simply doesn't work" mean?
ataractic
ataractic12mo ago
the user doesnt exist in the DB after running docker compose up
ioB
ioB12mo ago
does this work outside of docker? wait where are you persisting the kv on disk?
ataractic
ataractic12mo ago
it works outside of docker default directory, never tweaked this
ioB
ioB12mo ago
perhaps worth tweaking? not sure
ataractic
ataractic12mo ago
update: the script db:init is not executed update: deleting Dockerfile and running docker compose up starts the container anyways update (solved): running docker compose up was just running the image that was created by my first try which wasn't containing the problematic statement. By deleting the image and container and running docker compose up again fixed my issue.