From 2b3cfc0df4c90b160c4bb47e36777d8bbdda4e93 Mon Sep 17 00:00:00 2001 From: flukehn Date: Tue, 27 Jul 2021 17:09:06 +0800 Subject: [PATCH] fix(install): Update Dockerfile for mysql connection issue (#92) if the pid of mysqld after reboot equal to before it will need to delete the /run/mysqld/mysqld.sock --- install/bundle/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/install/bundle/Dockerfile b/install/bundle/Dockerfile index 7819cb2..c37ebef 100644 --- a/install/bundle/Dockerfile +++ b/install/bundle/Dockerfile @@ -11,6 +11,7 @@ RUN git clone https://github.com/UniversalOJ/UOJ-System.git --depth 1 --single-b #Install environment and set startup script RUN cd uoj/install/bundle && sh install.sh -p && echo "\ #!/bin/sh\n\ +rm -rf /run/mysqld/*\n\ chown -R mysql:mysql /var/lib/mysql /var/run/mysqld\n\ if [ ! -f \"/var/uoj_data/.UOJSetupDone\" ]; then\n\ cd /opt/uoj/install/bundle && sh install.sh -i\n\