2020-01-25 11:23:48 -03:00
|
|
|
ARG MYSQL_VERSION
|
2017-07-07 16:43:06 -05:00
|
|
|
FROM mysql:${MYSQL_VERSION}
|
2016-05-06 17:04:02 +03:00
|
|
|
|
2018-03-16 21:09:15 +08:00
|
|
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
2016-05-06 17:04:02 +03:00
|
|
|
|
2017-06-13 00:55:05 +02:00
|
|
|
#####################################
|
|
|
|
# Set Timezone
|
|
|
|
#####################################
|
|
|
|
|
|
|
|
ARG TZ=UTC
|
|
|
|
ENV TZ ${TZ}
|
2018-07-18 18:47:49 +05:30
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/
|
2016-11-17 16:37:51 -05:00
|
|
|
|
2018-04-04 06:13:11 -06:00
|
|
|
COPY my.cnf /etc/mysql/conf.d/my.cnf
|
2016-09-09 10:21:33 +08:00
|
|
|
|
2019-09-21 15:56:09 +02:00
|
|
|
RUN chmod 0444 /etc/mysql/conf.d/my.cnf
|
|
|
|
|
2017-07-04 06:00:31 +03:00
|
|
|
CMD ["mysqld"]
|
2016-05-06 17:04:02 +03:00
|
|
|
|
2016-10-14 21:04:24 +02:00
|
|
|
EXPOSE 3306
|