2019-07-13 20:46:21 -07:00
|
|
|
ARG MARIADB_VERSION=latest
|
|
|
|
FROM mariadb:${MARIADB_VERSION}
|
2016-05-09 04:23:03 +03:00
|
|
|
|
2018-03-16 17:34:47 +08:00
|
|
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
2016-05-09 04:23:03 +03:00
|
|
|
|
2019-07-14 11:41:12 +08:00
|
|
|
#####################################
|
|
|
|
# Set Timezone
|
|
|
|
#####################################
|
|
|
|
|
|
|
|
ARG TZ=UTC
|
|
|
|
ENV TZ ${TZ}
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/
|
2018-04-04 06:13:11 -06:00
|
|
|
COPY my.cnf /etc/mysql/conf.d/my.cnf
|
2017-02-11 03:51:10 +01:00
|
|
|
|
2019-01-24 20:25:08 +03:00
|
|
|
RUN chmod -R 644 /etc/mysql/conf.d/my.cnf
|
|
|
|
|
2016-05-09 04:23:03 +03:00
|
|
|
CMD ["mysqld"]
|
|
|
|
|
|
|
|
EXPOSE 3306
|