github.com/polarismesh/polaris@v1.17.8/release/standalone/docker-compose/mysql/Dockerfile (about)

     1  FROM mysql:8
     2  
     3  LABEL maintainer="polaris"
     4  
     5  # Set Timezone
     6  ARG TZ=Asia/Shanghai
     7  ENV TZ ${TZ}
     8  RUN pwd \
     9      && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
    10  	&& echo $TZ > /etc/timezone \
    11  	&& chown -R mysql:root /var/lib/mysql/ \
    12  	&& true
    13  
    14  EXPOSE 3306