From 0b55e46bc111fb5a0536e2cdea3bf35604a94e40 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 28 Mar 2023 11:21:25 -0600 Subject: [PATCH] dockerfile continues --- Dockerfile | 14 +++++++++++++- git.d/mayhem-party.d | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 60d5a79..4a26300 100644 --- a/Dockerfile +++ b/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"] diff --git a/git.d/mayhem-party.d b/git.d/mayhem-party.d index 95810d3..7f2e254 160000 --- a/git.d/mayhem-party.d +++ b/git.d/mayhem-party.d @@ -1 +1 @@ -Subproject commit 95810d3735906c5cc61ee3c842d789d66cc6c93e +Subproject commit 7f2e25458e7bb34ee292bcce652d8f076c98692d