update entrypoint for container image
All checks were successful
git.dreamfall.space/pnut-matrix/pipeline/head This commit looks good

This commit is contained in:
Morgan McMillian 2025-01-15 12:16:52 -08:00
parent 03e895e87b
commit 7358159293
2 changed files with 8 additions and 3 deletions

View file

@ -22,7 +22,9 @@ COPY --from=builder /wheels /wheels
RUN pip --no-cache-dir install --find-links /wheels --no-index pnut-matrix RUN pip --no-cache-dir install --find-links /wheels --no-index pnut-matrix
COPY run.sh /usr/local/bin/run.sh
VOLUME /data VOLUME /data
WORKDIR /data WORKDIR /data
EXPOSE 5000 EXPOSE 5000
CMD [ "bash", "/usr/src/app/run.sh" ] CMD [ "bash", "/usr/local/bin/run.sh" ]

7
run.sh
View file

@ -1,7 +1,10 @@
!#/bin/bash !#/bin/bash
pnutservice -c /data/config.yml & cd /data
matrixappsvc -c /data/config.yml &
appservice -c config.toml &
pnutservice -c config.toml &
wait -n wait -n
exit $? exit $?