laradock/mariadb/Dockerfile

17 lines
372 B
Docker
Raw Normal View History

2016-05-09 09:23:03 +08:00
FROM mariadb:latest
2018-03-16 17:34:47 +08:00
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
2016-05-09 09:23:03 +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/
COPY my.cnf /etc/mysql/conf.d/my.cnf
2017-02-11 10:51:10 +08:00
2016-05-09 09:23:03 +08:00
CMD ["mysqld"]
EXPOSE 3306