2022-12-21 13:17:50 +00:00
|
|
|
FROM myt/base
|
2022-12-15 23:54:23 +00:00
|
|
|
|
|
|
|
ENV MYSQL_ROOT_PASSWORD root
|
|
|
|
|
2023-01-25 17:16:43 +00:00
|
|
|
COPY docker.cnf /etc/mysql/conf.d/
|
2022-12-15 23:54:23 +00:00
|
|
|
COPY \
|
2023-01-25 17:16:43 +00:00
|
|
|
docker-init.sh \
|
|
|
|
docker-import.sh \
|
|
|
|
docker-start.sh \
|
2022-12-15 23:54:23 +00:00
|
|
|
/usr/local/bin/
|
|
|
|
|
|
|
|
ENTRYPOINT ["docker-start.sh"]
|
|
|
|
CMD ["mysqld"]
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=2s --timeout=10s --retries=200 \
|
|
|
|
CMD mysqladmin ping -h 127.0.0.1 -u root --password=root || exit 1
|