adjust to new npm published package

master
jem 4 years ago
parent 57376d2e15
commit 8999359ae6

@ -3,9 +3,7 @@ FROM node:10-slim
RUN apt-get update && apt-get install --assume-yes software-properties-common && \ RUN apt-get update && apt-get install --assume-yes software-properties-common && \
apt-get install --assume-yes git cron apt-get install --assume-yes git cron
RUN git clone https://github.com/yogthos/mastodon-bot /mastodon-bot && \ RUN npm install -g mastodon-bot
cd /mastodon-bot && npm install && \
npm install -g lumo-cljs
RUN mkdir /config && touch /config/config.edn && touch /var/log/cron.log RUN mkdir /config && touch /config/config.edn && touch /var/log/cron.log

@ -3,7 +3,7 @@
while true; do while true; do
echo "Polling Bot" echo "Polling Bot"
cd /mastodon-bot cd /mastodon-bot
npm start mastodon-bot
echo "Poll done, waiting 600 seconds" echo "Poll done, waiting 600 seconds"
sleep 600 sleep 600
done done