Compare commits

..

2 Commits

Author SHA1 Message Date
6aae1c80e4 feature(dockerfile): add basic healthcheck
- check mysqld service only, not actual database
2021-09-07 03:06:20 -06:00
1c5dc6cb12 feature(dockerfile): bump alpine base version
- also bumps MariaDB base version
2021-09-07 01:58:23 -06:00

View File

@ -2,7 +2,7 @@
### mariadb running on Alpine Linux
#
FROM alpine:3.13
FROM alpine:3.14
# standardized labels
MAINTAINER Asif Bacchus <asif@asifbacchus.dev>
@ -30,6 +30,14 @@ EXPOSE 3306
# create volume if user forgets
VOLUME ["/var/lib/mysql"]
# basic healthcheck (service only)
HEALTHCHECK \
--interval=30s \
--timeout=10s \
--start-period=30s \
--retries=3 \
CMD mysqladmin ping --silent
# set environment variables
ENV TZ=Etc/UTC
ENV MYSQL_UID=8100