2016-05-06 16:04:02 +02:00
|
|
|
FROM mysql:latest
|
|
|
|
|
|
|
|
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
|
|
|
|
|
2016-09-09 04:21:33 +02: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 16:04:02 +02:00
|
|
|
CMD ["mysqld"]
|
|
|
|
|
|
|
|
EXPOSE 3306
|