mirror of
https://gitlab.jonasled.de/jonasled/discordbot
synced 2024-10-21 08:49:30 +02:00
add dockerfile + docker-compose
This commit is contained in:
parent
50fe981baf
commit
9554679a83
2 changed files with 23 additions and 0 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
7
docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue