-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into restrict_voice_channel
- Loading branch information
Showing
38 changed files
with
2,717 additions
and
1,571 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
ignore = E203, E266, E501, E731, W503, F403, F401 | ||
max-line-length = 99 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 |
Validating CODEOWNERS rules …
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
* @jaydenkieran | ||
* @jaydenkieran | ||
* @srhinos |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,34 @@ | ||
FROM alpine:edge | ||
FROM python:3.8-alpine | ||
|
||
# Add project source | ||
WORKDIR /usr/src/musicbot | ||
WORKDIR /musicbot | ||
COPY . ./ | ||
COPY ./config sample_config | ||
|
||
# Install build dependencies | ||
RUN apk update && apk add --no-cache --virtual .build-deps \ | ||
build-base \ | ||
libffi-dev \ | ||
libsodium-dev | ||
|
||
# Install dependencies | ||
RUN apk update \ | ||
&& apk add --no-cache \ | ||
RUN apk update && apk add --no-cache \ | ||
ca-certificates \ | ||
ffmpeg \ | ||
opus \ | ||
python3 \ | ||
libsodium-dev \ | ||
\ | ||
# Install build dependencies | ||
&& apk add --no-cache --virtual .build-deps \ | ||
gcc \ | ||
git \ | ||
libffi-dev \ | ||
make \ | ||
musl-dev \ | ||
python3-dev \ | ||
\ | ||
opus-dev \ | ||
libffi \ | ||
libsodium \ | ||
gcc | ||
|
||
# Install pip dependencies | ||
&& pip3 install --no-cache-dir -r requirements.txt \ | ||
&& pip3 install --upgrade --force-reinstall --version websockets==4.0.1 \ | ||
\ | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
# Clean up build dependencies | ||
&& apk del .build-deps | ||
RUN apk del .build-deps | ||
|
||
# Create volume for mapping the config | ||
VOLUME /usr/src/musicbot/config | ||
# Create volumes for audio cache, config, data and logs | ||
VOLUME ["/musicbot/audio_cache", "/musicbot/config", "/musicbot/data", "/musicbot/logs"] | ||
|
||
ENV APP_ENV=docker | ||
|
||
ENTRYPOINT ["python3", "dockerentry.py"] | ||
ENTRYPOINT ["/bin/sh", "docker-entrypoint.sh"] |
This file contains 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
This file contains 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
Oops, something went wrong.