mirror of
https://github.com/PlayEdu/docker-compose.git
synced 2025-11-18 23:47:43 +08:00
✈️
This commit is contained in:
16
mysql/Dockerfile
Normal file
16
mysql/Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user