Dockerfile 503 B

12345678910111213
  1. FROM mysql/mysql-server:5.7.12
  2. RUN yum install -y wget
  3. RUN wget https://code.senomas.com/seno/docker-util-out/raw/master/linux-amd64/hlic
  4. RUN mkdir -p /var/run/sshd && sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && \
  5. sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
  6. touch /root/.Xauthority && \
  7. true
  8. ADD entrypoint.sh entrypoint.sh
  9. ADD my.cnf /etc/my.cnf
  10. ADD init-db.sql /docker-entrypoint-initdb.d/init-db.sql