Install `wait-for-it` in Dockerfile

This commit is contained in:
slashtechno 2022-12-17 21:17:29 -06:00
parent 0c6a53b457
commit 75f37f5b0e
Signed by: slashtechno
GPG Key ID: 8EC1D9D9286C2B17
1 changed files with 3 additions and 0 deletions

View File

@ -32,4 +32,7 @@ WORKDIR /app
COPY . ./ COPY . ./
# Install from requirements.txt # Install from requirements.txt
RUN pip3 install -r 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"] ENTRYPOINT ["python", "main.py"]