2016-05-06 22:04:02 +08:00
|
|
|
FROM mysql:latest
|
|
|
|
|
|
|
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|
|
|
|
2016-09-09 10:21:33 +08:00
|
|
|
ARG MAX_ALLOWED_PACKET=1M
|
|
|
|
ENV MAX_ALLOWED_PACKET ${MAX_ALLOWED_PACKET}
|
|
|
|
|
|
|
|
# Set MAX_ALLOWED_PACKET to /etc/mysql/my.cnf
|
|
|
|
RUN sed -i "s/^\[mysqld\]$/\[mysqld\]\nmax_allowed_packet = ${MAX_ALLOWED_PACKET}/g" /etc/mysql/my.cnf
|
|
|
|
|
2016-05-06 22:04:02 +08:00
|
|
|
CMD ["mysqld"]
|
|
|
|
|
|
|
|
EXPOSE 3306
|