You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently one needs to put at last two lines to install custom initialization script:
RUN mkdir /docker-entrypoint-initdb.d
COPY ./some-script.sh /docker-entrypoint-initdb.d/some-script.sh
There would be no harm to have empty /docker-entrypoint-initdb.d directory for user scripts but it would make extending images easier by reducing previous example to:
As a side effect, this change would also simplify docker-entrypoint.sh (one test less) but what is most important here, users will gain ability to just COPY their scripts without need to manage destination directory (which is already specified in docker-entrypoint.sh.)