diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fa0df30..afe9e17 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,5 +4,7 @@ "build": { "dockerfile": "../Dockerfile" }, + onCreateCommand: "/etc/init.d/mysql start", + updateContentCommand: "/etc/init.d/mysql start", "postCreateCommand": "start_mysql.sh" } diff --git a/Dockerfile b/Dockerfile index 14a8f6b..acfb71d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,5 +26,3 @@ COPY init_db.sql /docker-entrypoint-initdb.d/ COPY start_mysql.sh /usr/local/bin/start_mysql.sh RUN chmod +x /usr/local/bin/start_mysql.sh -CMD ["start_mysql.sh"] -CMD ["/etc/init.d/mysql", "start"]