This commit is contained in:
none
2023-05-30 15:16:15 +08:00
commit f91382f3c5
11 changed files with 2030 additions and 0 deletions

16
mysql/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM mysql:5.7.42
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
ARG TZ=UTC
ENV TZ ${TIMEZONE}
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
COPY docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
RUN chmod 0444 /etc/mysql/conf.d/my.cnf
CMD ["mysqld"]
EXPOSE 3306