Giovanbattista Amato

Results 4 comments of Giovanbattista Amato

You need `bash` to run `wait-for-it`. E.g.: ```Dockerfile FROM node:alpine # Install bash to use 'wait-for-it' RUN apk update && apk add bash && apk add --no-cache coreutils # Add...

Add wait-for-it to the container and use a docker entrypoint: ```dockerfile # DOCKERFILE FROM # Add 'wait-for-it' to check upstream availability COPY wait-for-it.sh /usr/local/bin/wait-for-it RUN chmod +x /usr/local/bin/wait-for-it # Add...

@pascalandy used in the project https://github.com/gioamato/stateless-wordpress The implementation is inside NGINX Dockerfile: https://github.com/gioamato/stateless-wordpress/blob/master/nginx/Dockerfile

@pascalandy exactly. I suggest you to install dependencies first and then copy wait-for-it as the last thing. Doing so you will not invalidate docker build layers if you update wait-for-it...