diff --git a/README.md b/README.md index f71b2f1..05277df 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ You can use the content of the *mastodon-bot* directory to create your own Masto # License -Copyright 2003-2021 Davide Alberani +Copyright 2003-2021 Davide Alberani Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/mastodon-bot/Dockerfile b/mastodon-bot/Dockerfile index 440b44a..b07d337 100644 --- a/mastodon-bot/Dockerfile +++ b/mastodon-bot/Dockerfile @@ -1,10 +1,10 @@ FROM alpine LABEL \ - maintainer="Davide Alberani " + maintainer="Davide Alberani " RUN \ - apk add --no-cache git fortune python3 py3-cffi py3-six py3-requests py3-cryptography && \ - pip3 install Mastodon.py && \ + apk add --no-cache git fortune python3 py3-pip py3-cffi py3-six py3-requests py3-cryptography && \ + pip3 install --break-system-packages Mastodon.py && \ cd / && \ git clone https://github.com/alberanid/fortunes-spam.git COPY fortunes-spam-bot.py /fortunes-spam diff --git a/telegram-bot/Dockerfile b/telegram-bot/Dockerfile index 264389f..93fe0e1 100644 --- a/telegram-bot/Dockerfile +++ b/telegram-bot/Dockerfile @@ -1,10 +1,10 @@ FROM alpine LABEL \ - maintainer="Davide Alberani " + maintainer="Davide Alberani " RUN \ apk add --no-cache git fortune python3 py3-cffi py3-six py3-requests py3-cryptography py3-pip && \ - pip3 install python-telegram-bot && \ + pip3 install --break-system-packages python-telegram-bot && \ cd / && \ git clone https://github.com/alberanid/fortunes-spam.git COPY fortunes-spam-bot.py /fortunes-spam diff --git a/telegram-bot/fortunes-spam-bot.py b/telegram-bot/fortunes-spam-bot.py index 67389e9..5668efa 100755 --- a/telegram-bot/fortunes-spam-bot.py +++ b/telegram-bot/fortunes-spam-bot.py @@ -4,7 +4,7 @@ Build it with: docker build -t fortunes-spam-bot . Run it with something like: docker run -ti --rm -e SPAMBOT_TOKEN=your-telegram-token fortunes-spam-bot -Copyright 2018-2021 Davide Alberani Apache 2.0 license +Copyright 2018-2021 Davide Alberani Apache 2.0 license """ import os