diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..642022d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,4 @@ +version: "3" +services: + bot: + build: . diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..3cce367 --- /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","run.py"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..fac7406 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +yarl<1.2 +numpy==1.14.0 diff --git a/src/config/config.py b/src/config/config.py index 2694a82..f32d0f6 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -2,8 +2,7 @@ # -*- coding: -*- import json -import psycopg2 -import psycopg2.extensions + class LoadConfig: """