From a9054c8ef0a34d1b4d40f3959da9e05e3c1422c8 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 7 Feb 2022 14:17:44 +0000 Subject: [PATCH] add wait --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4bd02314..e88b96eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -73,5 +73,8 @@ RUN ./create_building_records_cl.sh RUN psql -d colouringlondon < ../migrations/003.index-buildings.up.sql RUN ls ./colouring-london/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql -d colouringlondon < $migration; done; +ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait +RUN chmod +x /wait + EXPOSE 8080 CMD /wait && PGPASSWORD=postgres PGDATABASE=colouringlondon PGUSER=dockeruser PGHOST=localhost PGPORT=5432 APP_COOKIE_SECRET=123456 npm start \ No newline at end of file