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