This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Posix.Signals | |
main = do | |
mainId <- myThreadId | |
_ <- | |
installHandler | |
softwareTermination | |
(CatchOnce | |
(do putStrLn "Received SIGTERM. Killing main thread." | |
killThread mainId)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
RUN apt-get update -y | |
RUN apt-get install -y python pip | |
COPY . /home/chris/Work/alphacephei/vosk-server | |
WORKDIR /home/chris/Work/alphacephei/vosk-server | |
RUN pip install -r requirements.txt && pip3 install sounddevice | |
RUN apt-get install -y libportaudio2 |