Added Dockerfile and docker-compose
This commit is contained in:
parent
ddc4690ee5
commit
ca51313e98
|
|
@ -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
|
||||
|
|
@ -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:
|
||||
Loading…
Reference in New Issue