onthisday/mastodon-bot/Dockerfile

20 lines
401 B
Text
Raw Permalink Normal View History

2019-07-18 19:13:13 +02:00
FROM alpine
LABEL \
maintainer="Davide Alberani <da@erlug.linux.it>"
RUN \
apk add --no-cache \
git python3 && \
pip3 install Mastodon.py && \
pip3 install markovify && \
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"]