Docker-MariaDB/Dockerfile

15 lines
624 B
Text
Raw Permalink Normal View History

2024-05-17 07:49:08 +00:00
# checkov:skip=CKV_DOCKER_3 We're not adding a user, its coming down from on-high in mariadb.
FROM mariadb:injected-version
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
2024-05-17 09:19:40 +00:00
org.label-schema.vcs-url="https://github.com/benzine-framework/docker-mariadb" \
org.opencontainers.image.source="https://github.com/benzine-framework/docker-mariadb"
2024-05-17 07:49:08 +00:00
# If healthcheck.sh isn't baked into the underlying image, crash.
RUN which healthcheck.sh
2019-08-13 17:31:54 +00:00
# Add healthcheck
2024-05-17 07:49:08 +00:00
HEALTHCHECK --start-period=30s --interval=10s --timeout=30s --retries=3 \
CMD ["healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]