fix: Wait for postgres in worker service

This commit is contained in:
Faruk AYDIN
2022-11-12 16:15:06 +01:00
parent 0dfdbc809c
commit d67db9c63e
6 changed files with 24 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
# syntax=docker/dockerfile:1
FROM node:16
WORKDIR /automatisch
RUN apt-get update && apt-get install -y postgresql-client
COPY ./wait-for-postgres.sh /automatisch/wait-for-postgres.sh
RUN yarn global add @automatisch/cli@0.1.5
CMD sh /automatisch/wait-for-postgres.sh automatisch start-worker --env-file /automatisch/storage/.env