Add docker environment

This commit is contained in:
annihilator708 2018-05-21 03:08:06 +02:00
parent b6d6513765
commit 5e4d72145f
4 changed files with 26 additions and 2 deletions

4
docker-compose.yml Normal file
View File

@ -0,0 +1,4 @@
version: "3"
services:
bot:
build: .

19
dockerfile Normal file
View File

@ -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"]

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
yarl<1.2
numpy==1.14.0

View File

@ -2,8 +2,7 @@
# -*- coding: <encoding name> -*-
import json
import psycopg2
import psycopg2.extensions
class LoadConfig:
"""