dockerfile continues
parent
af8f75bc7c
commit
0b55e46bc1
14
Dockerfile
14
Dockerfile
|
|
@ -1,3 +1,10 @@
|
|||
FROM golang:bullseye as mayhem-party-builder
|
||||
|
||||
WORKDIR /mayhem-party.d
|
||||
RUN apt -y update && apt -y install libasound2-dev
|
||||
COPY git.d/mayhem-party.d/ ./
|
||||
RUN go build -o /bin/mayhem-party
|
||||
|
||||
FROM debian:stable-slim
|
||||
|
||||
RUN apt -y update && apt -y upgrade && apt -y install wget
|
||||
|
|
@ -10,11 +17,16 @@ RUN \
|
|||
|
||||
# stt #nogo since i need microphone
|
||||
|
||||
# mayhem-party
|
||||
COPY --from=mayhem-party-builder /bin/mayhem-party /bin/mayhem-party
|
||||
|
||||
# sigusr1
|
||||
|
||||
# entrypoint
|
||||
RUN echo 'date' > /entrypoint.sh \
|
||||
&& echo 'cleanup() { kill -9 $(jobs -p); wait; }; trap cleanup EXIT' >> /entrypoint.sh \
|
||||
&& echo '( while true; do larynx-server; sleep 5; done ) &' >> /entrypoint.sh \
|
||||
&& echo 'read' >> /entrypoint.sh
|
||||
&& echo 'echo running mayhem party; if ! /bin/mayhem-party; then echo mayhem-party failure; exit 1; fi' >> /entrypoint.sh
|
||||
|
||||
ENTRYPOINT []
|
||||
CMD ["bash", "/entrypoint.sh"]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 95810d3735906c5cc61ee3c842d789d66cc6c93e
|
||||
Subproject commit 7f2e25458e7bb34ee292bcce652d8f076c98692d
|
||||
Loading…
Reference in New Issue