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