From 7358159293b6cc222b4e82e83ce9f5cbd14d714e Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Wed, 15 Jan 2025 12:16:52 -0800 Subject: [PATCH] update entrypoint for container image --- Dockerfile | 4 +++- run.sh | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f3b322..1847596 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,9 @@ COPY --from=builder /wheels /wheels RUN pip --no-cache-dir install --find-links /wheels --no-index pnut-matrix +COPY run.sh /usr/local/bin/run.sh + VOLUME /data WORKDIR /data EXPOSE 5000 -CMD [ "bash", "/usr/src/app/run.sh" ] +CMD [ "bash", "/usr/local/bin/run.sh" ] diff --git a/run.sh b/run.sh index cd78615..13eb221 100755 --- a/run.sh +++ b/run.sh @@ -1,7 +1,10 @@ !#/bin/bash -pnutservice -c /data/config.yml & -matrixappsvc -c /data/config.yml & +cd /data + +appservice -c config.toml & +pnutservice -c config.toml & + wait -n exit $?