update entrypoint for container image
All checks were successful
git.dreamfall.space/pnut-matrix/pipeline/head This commit looks good
All checks were successful
git.dreamfall.space/pnut-matrix/pipeline/head This commit looks good
This commit is contained in:
parent
03e895e87b
commit
7358159293
2 changed files with 8 additions and 3 deletions
|
@ -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
7
run.sh
|
@ -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 $?
|
||||||
|
|
Loading…
Add table
Reference in a new issue