update Dockerfile

This commit is contained in:
Davide Alberani 2024-12-05 22:01:00 +01:00
parent cb67f33762
commit 8b3275ea0e
4 changed files with 7 additions and 7 deletions

View file

@ -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 <da@erlug.linux.it>
Copyright 2003-2021 Davide Alberani <da@mimante.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View file

@ -1,10 +1,10 @@
FROM alpine
LABEL \
maintainer="Davide Alberani <da@erlug.linux.it>"
maintainer="Davide Alberani <da@mimante.net>"
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

View file

@ -1,10 +1,10 @@
FROM alpine
LABEL \
maintainer="Davide Alberani <da@erlug.linux.it>"
maintainer="Davide Alberani <da@mimante.net>"
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

View file

@ -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 <da@erlug.linux.it> Apache 2.0 license
Copyright 2018-2021 Davide Alberani <da@mimante.net> Apache 2.0 license
"""
import os