myt/server/Dockerfile.server

17 lines
348 B
Docker
Raw Normal View History

2022-12-21 13:17:50 +00:00
FROM myt/base
ENV MYSQL_ROOT_PASSWORD root
COPY docker.cnf /etc/mysql/conf.d/
COPY \
docker-init.sh \
docker-import.sh \
docker-start.sh \
/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