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