ataractic
ataractic17mo 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
ioB17mo ago
What does "simply doesn't work" mean?
ataractic
ataracticOP17mo ago
the user doesnt exist in the DB after running docker compose up
ioB
ioB17mo ago
does this work outside of docker? wait where are you persisting the kv on disk?
ataractic
ataracticOP17mo ago
it works outside of docker default directory, never tweaked this
ioB
ioB17mo ago
perhaps worth tweaking? not sure
ataractic
ataracticOP17mo 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.

Did you find this page helpful?