From 6b449953336bf0fbbd763f2e418133cf2b9325c4 Mon Sep 17 00:00:00 2001 From: neko404notfound Date: Thu, 21 Jun 2018 09:28:25 +0100 Subject: [PATCH] Readded dockerfile as heroku uses it apparently..? --- docker-compose.yml | 6 ++++++ dockerfile | 19 +++++++++++++++++++ requirements.txt | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 docker-compose.yml create mode 100644 dockerfile diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f81019b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3' +services: + sebibot: + build: . + volumes: + - .:/bot diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..87c38ca --- /dev/null +++ b/dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:latest +ENV LC_ALL C +MAINTAINER PUFFDIP + +ADD . /bot +WORKDIR /bot +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get autoremove -y && \ + apt-get install software-properties-common -y +RUN add-apt-repository ppa:deadsnakes/ppa && \ + apt-get update && apt-get install python3.6 && \ + apt-get install python3-pip -y +RUN apt install git -y +RUN python3.6 -m pip install --upgrade pip && \ + python3.6 -m pip install -r requirements.txt && \ + python3.6 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice] + +cmd ["python3.6","-m","src"] diff --git a/requirements.txt b/requirements.txt index 0b2f1e4..ed69be9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,3 +12,5 @@ opuslib dataclasses PyNaCl youtube_dl +# Duh! +git+https://github.com/rapptz/discord.py@rewrite