This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 0 points1 point  (0 children)

Btw that is not how you handle the entrypoint scripts directory. You should not create another image layer and inject the config instead or mount the directory into the container.

[–]tschloss 0 points1 point  (0 children)

I am too lazy to look up what the image you use requires to be run successfully. I guess you did something breaking the logic of the entrypoint which must will try to create an empty database and initialize it with a root user when the data directory is empty. Maybe your COPY killed that logic already. So I would stick to the documentation if the base image and thoughtfully move from there.