Browse Source

dockered

master
angerstoner 3 years ago
parent
commit
ffd5343b99
  1. 13
      Dockerfile
  2. 13
      docker-compose.yml
  3. 0
      src/db.py
  4. 0
      src/main.py
  5. 0
      src/mensa.py
  6. 0
      src/misc/commandlist
  7. 0
      src/misc/requirements.txt
  8. 0
      src/reddit.py
  9. 0
      src/res/goodlife.txt
  10. 0
      src/res/manta.txt
  11. 0
      src/res/simon.txt
  12. 0
      src/res/stoll.txt
  13. 0
      src/schneiderbot_twitter.py
  14. 0
      src/web_requests.py

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

13
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:

0
db.py → src/db.py

0
schneiderbot.py → src/main.py

0
mensa.py → src/mensa.py

0
misc/commandlist → src/misc/commandlist

0
misc/requirements.txt → src/misc/requirements.txt

0
reddit.py → src/reddit.py

0
res/goodlife.txt → src/res/goodlife.txt

0
res/manta.txt → src/res/manta.txt

0
res/simon.txt → src/res/simon.txt

0
res/stoll.txt → src/res/stoll.txt

0
schneiderbot_twitter.py → src/schneiderbot_twitter.py

0
web_requests.py → src/web_requests.py

Loading…
Cancel
Save