From 189030202ae18ace51bb5304ce8fa3c967e55777 Mon Sep 17 00:00:00 2001 From: gmicroul <121873438+gmicroul@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:18:24 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 260ec22..efb4109 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,9 +29,9 @@ RUN unzip /server.sql.zip && rm -f /server.sql.zip \ && service mysql restart && mysql -e "create user zabbix@localhost identified by 'password';" \ && service mysql restart && mysql -e "grant all privileges on zabbix.* to zabbix@localhost;" \ && service mysql restart && mysql -e "set global log_bin_trust_function_creators = 1;" \ - && service mysql restart && mysql -e "update dbversion set mandatory=7000000;" \ && service mysql restart && mysql -e "FLUSH PRIVILEGES;" \ && service mysql restart && mysql -e "use zabbix;source /server.sql;" \ + && service mysql restart && mysql -e "use zabbix;update dbversion set mandatory=7000000;" \ && cp -r /usr/share/zabbix/ /var/www/html/ # 暴露Zabbix Frontend端口 EXPOSE 80 3306 11050