diff --git a/Dockerfile b/Dockerfile index 08fdcba..7bb4a39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,3 +13,4 @@ RUN apt install netcat -y RUN apt update RUN pwd COPY . /app +ENTRYPOINT ["./run.sh"] diff --git a/start.sh b/run.sh similarity index 99% rename from start.sh rename to run.sh index 54b9903..4682313 100755 --- a/start.sh +++ b/run.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash - while ! nc -z $DB_HOST 3306 ; do echo "Waiting for the MySQL Server" sleep 3