Added Dockerfile and docker-compose

This commit is contained in:
Elnath 2020-12-26 22:49:11 +01:00
parent ddc4690ee5
commit ca51313e98
2 changed files with 21 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM python:3.7
COPY VocalMaisBot.py requirements.txt /app/
WORKDIR /app
RUN pip install -r requirements.txt
VOLUME ["/app/.token", "/app/channels.json"]
ENTRYPOINT /app/VocalMaisBot.py

15
docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
version: "3"
services:
VocalMaisBot:
build:
dockerfile: Dockerfile
context: .
image: vocalmaisbot
restart: unless-stopped
volumes:
- ./.token:/app/.token:ro
- ./channels.json:/app/channels.json
networks:
- vocalmaisbot
networks:
vocalmaisbot: