onthisday/mastodon-bot/Dockerfile

20 lines
468 B
Text
Raw Normal View History

2019-07-18 19:13:13 +02:00
FROM alpine
LABEL \
2024-12-05 21:34:05 +01:00
maintainer="Davide Alberani <da@mimante.net>"
2019-07-18 19:13:13 +02:00
RUN \
2024-12-05 21:41:11 +01:00
apk update && apk add --no-cache \
2024-12-05 21:34:05 +01:00
git python3 py3-pip && \
2024-12-05 21:41:11 +01:00
pip3 install --break-system-packages Mastodon.py && \
pip3 install --break-system-packages markovify && \
2019-07-18 19:13:13 +02:00
cd / && \
git clone https://github.com/alberanid/onthisday.git && \
cd onthisday && \
python3 ./setup.py install
COPY onthisday-mastodon-bot.py /usr/bin/
ENTRYPOINT ["python3", "/usr/bin/onthisday-mastodon-bot.py"]