From 75f37f5b0e2fb23c101f51377feee38ffe502337 Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Sat, 17 Dec 2022 21:17:29 -0600 Subject: [PATCH] Install `wait-for-it` in Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index a05c3d7..8417d6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,4 +32,7 @@ WORKDIR /app COPY . ./ # Install from requirements.txt RUN pip3 install -r requirements.txt +# Install wait-for-it so this can easily be used with docker-compose +# Example: command: ["./wait-for-it.sh", "bridge:8554", "--", "python", "main.py"] +RUN wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && chmod +x wait-for-it.sh && mv wait-for-it.sh /usr/local/bin ENTRYPOINT ["python", "main.py"] \ No newline at end of file