e8f481a493
Additional changes regarding docker See merge request ekzyis/musicube!11 |
||
---|---|---|
.vscode | ||
src | ||
test | ||
.dockerignore | ||
.env.template | ||
.gitignore | ||
.gitlab-ci.yml | ||
.pylintrc | ||
Dockerfile | ||
Makefile | ||
README.md | ||
pyproject.toml | ||
requirements.txt |
README.md
musicube
Development
Requirements:
$ python --version
3.9.7
Configure virtual environment:
$ python -m venv venv
$ source venv/bin/activate
Install requirements:
$ pip install -r requirements.txt
Configure ENV:
$ cp .env.template .env
# Write BOT_TOKEN into .env
Run bot:
$ python src/bot.py
Deployment
Requirements:
$ docker --version
Docker version 20.10.8, build 3967b7d28e
Build image:
$ make build
Run image:
$ docker run --rm --detach --name musicube musicube:latest