1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/mariadb/arm/Dockerfile
2016-08-01 16:41:09 +08:00

26 lines
612 B
Docker

#
# Dockerfile for mariadb-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache bash \
mariadb \
mariadb-client \
tzdata \
&& mkdir -p /run/mysqld \
&& chown mysql:mysql /run/mysqld \
&& sed -Ei -e 's/^(bind-address|log)/#&/' \
-e 's/^\[mysqld\]$/&\nskip-host-cache\nskip-name-resolve\nuser=mysql/' \
/etc/mysql/my.cnf
COPY docker-entrypoint.sh /
VOLUME /var/lib/mysql
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 3306
CMD ["mysqld"]