1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-08-01 15:04:39 +02:00

add dockerfile + docker-compose

This commit is contained in:
Jonas Leder 2020-04-02 19:19:55 +02:00
parent 50fe981baf
commit 9554679a83
2 changed files with 23 additions and 0 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM python:3
LABEL Name=discordbot
WORKDIR /
ADD ./bot.py /
ADD ./duck.mp3 /
ADD ./wrong.mp3 /
ADD ./requirements.txt /
RUN apt update
RUN apt install sqlite3 -y
RUN python3 -m pip install -r requirements.txt
ENTRYPOINT bash

7
docker-compose.yml Normal file
View file

@ -0,0 +1,7 @@
#This is the production compose file, if you want to develop use the docker-compose-build file.
version: '2.1'
services:
discord_bot:
image: discordbot:latest
volumes:
- ./config.py:/config.py