#引入基础镜像
FROM centos:7
#添加mysql安装包 ADD后 自动解压
ADD mysql-5.7.36-linux-glibc2.12-x86_64.tar.gz /usr/local
#修改文件夹名称
RUN mv /usr/local/mysql-5.7.36-linux-glibc2.12-x86_64 /usr/local/mysql
#添加配置文件
ADD my.cnf /etc/my.cnf
#下载jdk安装包
RUN yum install java-1.8.0-openjdk.x86_64 -y
#配置jdk
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
#下载mysql的依赖包安装包
RUN yum install -y libaio
RUN yum -y install numactl
RUN yum install initscripts -y