blackbirdchess-docker-dev/mariadb/Dockerfile

18 lines
411 B
Docker
Raw Normal View History

ARG MARIADB_VERSION=latest
FROM mariadb:${MARIADB_VERSION}
2016-05-09 03:23:03 +02:00
2018-03-16 10:34:47 +01:00
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
2016-05-09 03:23:03 +02: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 03:51:10 +01:00
2016-05-09 03:23:03 +02:00
CMD ["mysqld"]
EXPOSE 3306