Skip to content

Commit

Permalink
Use spawn mp, update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pmdevita committed May 19, 2024
1 parent 1b38e40 commit 4bb7b71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions beatrice/sound_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 4bb7b71

Please sign in to comment.