add docker support
fix buffered output and missed var name fix missing comma change dockerfile to install ffmpeg and dependencies on top of archlinux fix pacman not syncing fix pacman not syncing fix pacman not autoconfirming fix missing pip
This commit is contained in:
parent
4ac878fecb
commit
da7df0fc45
|
@ -4,4 +4,4 @@ DISCORD_GUILD_ID =
|
|||
DISCORD_BOT_ADMIN_ROLE_ID =
|
||||
DISCORD_BOT_ADMIN_USER_ID =
|
||||
|
||||
DISCORD_VC_CHANNEL =
|
||||
DISCORD_VCJOIN_CHANNEL =
|
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
FROM archlinux:latest
|
||||
WORKDIR /umi
|
||||
COPY . .
|
||||
RUN pacman -Syu --noconfirm
|
||||
RUN pacman -S --noconfirm python-pip libffi libsodium ffmpeg
|
||||
RUN pip install -r requirements.txt
|
||||
CMD ["python", "-u", "app.py"]
|
|
@ -21,7 +21,7 @@ Copy `.env.example` to `.env`:
|
|||
|
||||
- `DISCORD_BOT_ADMIN_ROLE_ID` for reloading cogs
|
||||
- `DISCORD_BOT_ADMIN_USER_ID` for reloading cogs
|
||||
- `DISCORD_VC_CHANNEL` for the VCJoin cog
|
||||
- `DISCORD_VCJOIN_CHANNEL` for the VCJoin cog
|
||||
|
||||
## Setup
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ def setup(bot: discord.Bot):
|
|||
class VCJoin(Cog):
|
||||
"""Log when a member joins VC, for pinging purposes"""
|
||||
|
||||
CHANNEL: int = config("DISCORD_VC_CHANNEL", cast=int)
|
||||
CHANNEL: int = config("DISCORD_VCJOIN_CHANNEL", cast=int)
|
||||
|
||||
def __init__(self, bot: discord.Bot):
|
||||
self.bot: discord.Bot = bot
|
||||
|
|
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
environment:
|
||||
DISCORD_BOT_TOKEN: $DISCORD_BOT_TOKEN
|
||||
DISCORD_GUILD_ID: $DISCORD_GUILD_ID
|
||||
DISCORD_BOT_ADMIN_ROLE_ID: $DISCORD_BOT_ADMIN_ROLE_ID
|
||||
DISCORD_BOT_ADMIN_USER_ID: $DISCORD_BOT_ADMIN_USER_ID
|
||||
DISCORD_VCJOIN_CHANNEL: $DISCORD_VCJOIN_CHANNEL
|
Loading…
Reference in a new issue