diff --git a/Dockerfile b/Dockerfile index ac2d2a7..1036d31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,8 @@ RUN /app/bin/pip install dist/`ls dist | grep .whl`[mysql,uvloop,speed,audio] -- FROM python:3.10-alpine RUN apk add bash -RUN apk add blas opusfile ffmpeg # needed for audio -RUN apk add libuv libsodium +RUN apk add blas opusfile ffmpeg libsodium # needed for audio +RUN apk add libuv COPY --from=builder /app /app WORKDIR /config -CMD ["bash", "-c", "/app/bin/beatrice"] +CMD ["/app/bin/beatrice"] diff --git a/beatrice/sound_manager/__init__.py b/beatrice/sound_manager/__init__.py index 1160580..5864c99 100644 --- a/beatrice/sound_manager/__init__.py +++ b/beatrice/sound_manager/__init__.py @@ -45,6 +45,7 @@ def _callback_id(self): return temp def start_bot(self): + multiprocessing.set_start_method("spawn") self.process = multiprocessing.Process(target=start_bot, args=(self.bot_config, self.chpipe)) self.process.start()