Dockerfile 401 B

12345678910111213141516171819
  1. FROM alpine
  2. LABEL \
  3. maintainer="Davide Alberani <da@erlug.linux.it>"
  4. RUN \
  5. apk add --no-cache \
  6. git python3 && \
  7. pip3 install Mastodon.py && \
  8. pip3 install markovify && \
  9. cd / && \
  10. git clone https://github.com/alberanid/onthisday.git && \
  11. cd onthisday && \
  12. python3 ./setup.py install
  13. COPY onthisday-mastodon-bot.py /usr/bin/
  14. ENTRYPOINT ["python3", "/usr/bin/onthisday-mastodon-bot.py"]