mirror of
https://github.com/netzbegruenung/mastodon-bot.git
synced 2024-05-04 11:53:42 +02:00
Simplify Dockerfile
This commit is contained in:
parent
d79b9fa5c3
commit
c714626e76
16
Dockerfile
16
Dockerfile
|
@ -1,17 +1,13 @@
|
|||
FROM node:10-slim
|
||||
|
||||
RUN apt-get update && apt-get install --assume-yes software-properties-common && \
|
||||
apt-get install --assume-yes git cron
|
||||
WORKDIR /mastodon-bot
|
||||
|
||||
RUN git clone https://github.com/yogthos/mastodon-bot /mastodon-bot && \
|
||||
cd /mastodon-bot && npm install && \
|
||||
npm install -g lumo-cljs
|
||||
ADD mastodon-bot.cljs /mastodon-bot/
|
||||
ADD mastodon-bot.js /mastodon-bot/
|
||||
ADD package.json /mastodon-bot/
|
||||
|
||||
RUN mkdir /config && touch /config/config.edn && touch /var/log/cron.log
|
||||
RUN npm install && npm install -g lumo-cljs
|
||||
|
||||
ADD poll.sh /poll.sh
|
||||
|
||||
ENV MASTODON_BOT_CONFIG /config/config.edn
|
||||
VOLUME /config
|
||||
|
||||
CMD /poll.sh
|
||||
ENTRYPOINT ["npm", "start"]
|
||||
|
|
Loading…
Reference in a new issue