fix: chown files in entrypoint vs dockerfile

- init directories chown'd in entrypoint vs dockerfile
- sets proper UID and GID instead of system default
This commit is contained in:
Asif Bacchus
2020-12-27 04:15:32 -07:00
parent e4df2adce6
commit c5be56fb59
3 changed files with 19 additions and 6 deletions
+1 -2
View File
@@ -45,8 +45,7 @@ ENV MYSQL_PASSWORD=''
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 \
&& chown -R mysql:mysql /docker-entrypoint-*
&& mkdir -p /docker-entrypoint-postinit.d
# set entrypoint and default command
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]