diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..99d3544 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:alpine + +RUN apk update +RUN apk add --upgrade apk-tools +RUN apk upgrade --available + +COPY ./src /code +WORKDIR /code + +RUN pip install --upgrade pip +RUN pip install -r misc/requirements.txt + +CMD [ "python", "./main.py" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d4f72f3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3.4' + +services: + schneiderbot: + build: ./ + restart: unless-stopped + stdin_open: true + tty: true + volumes: + - ./src:/code + +networks: + default: \ No newline at end of file diff --git a/db.py b/src/db.py similarity index 100% rename from db.py rename to src/db.py diff --git a/schneiderbot.py b/src/main.py similarity index 100% rename from schneiderbot.py rename to src/main.py diff --git a/mensa.py b/src/mensa.py similarity index 100% rename from mensa.py rename to src/mensa.py diff --git a/misc/commandlist b/src/misc/commandlist similarity index 100% rename from misc/commandlist rename to src/misc/commandlist diff --git a/misc/requirements.txt b/src/misc/requirements.txt similarity index 100% rename from misc/requirements.txt rename to src/misc/requirements.txt diff --git a/reddit.py b/src/reddit.py similarity index 100% rename from reddit.py rename to src/reddit.py diff --git a/res/goodlife.txt b/src/res/goodlife.txt similarity index 100% rename from res/goodlife.txt rename to src/res/goodlife.txt diff --git a/res/manta.txt b/src/res/manta.txt similarity index 100% rename from res/manta.txt rename to src/res/manta.txt diff --git a/res/simon.txt b/src/res/simon.txt similarity index 100% rename from res/simon.txt rename to src/res/simon.txt diff --git a/res/stoll.txt b/src/res/stoll.txt similarity index 100% rename from res/stoll.txt rename to src/res/stoll.txt diff --git a/schneiderbot_twitter.py b/src/schneiderbot_twitter.py similarity index 100% rename from schneiderbot_twitter.py rename to src/schneiderbot_twitter.py diff --git a/web_requests.py b/src/web_requests.py similarity index 100% rename from web_requests.py rename to src/web_requests.py