create import directories

This commit is contained in:
Asif Bacchus 2020-11-27 02:28:25 -07:00
parent 9ede46073b
commit bfaa9942ed
1 changed files with 5 additions and 1 deletions

View File

@ -39,8 +39,12 @@ ENV MYSQL_COLLATION='utf8mb4_general_ci'
ENV MYSQL_USER=''
ENV MYSQL_PASSWORD=''
# copy scripts and make pre-exec and post-exec directories
# copy scripts and make script/sql directories
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN mkdir -p /docker-entrypoint-preinit.d \
&& mkdir -p /docker-entrypoint-initdb.d \
&& mkdir -p /docker-entrypoint-postinit.d \
&& chmod -R mysql:mysql /docker-entrypoint-*
# set entrypoint and default command
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]