setup Docker
This commit is contained in:
parent
475a41abcc
commit
9f882ab1be
|
@ -0,0 +1,3 @@
|
|||
secrets.env
|
||||
.env
|
||||
venv
|
|
@ -0,0 +1,10 @@
|
|||
FROM python:3.8-alpine3.10
|
||||
|
||||
WORKDIR /app
|
||||
RUN apk add build-base
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install -r requirements.txt
|
||||
COPY src/ ./src/
|
||||
|
||||
CMD ["python3", "src/werewolve-bot.py"]
|
|
@ -0,0 +1,8 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
|
||||
werewolf:
|
||||
build: .
|
||||
image: werwewolf
|
||||
env_file: secrets.env
|
||||
restart: always
|
|
@ -0,0 +1,2 @@
|
|||
discord.py
|
||||
python-dotenv
|
|
@ -7,6 +7,9 @@ from dotenv import load_dotenv
|
|||
|
||||
load_dotenv()
|
||||
TOKEN = os.getenv('DISCORD_TOKEN')
|
||||
if TOKEN is None:
|
||||
print("Missing discord token!")
|
||||
exit(1)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue