Skip to content

Instantly share code, notes, and snippets.

@kuropen
Created February 22, 2018 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuropen/346cd1327dc76ab36aa428657fe5eaa2 to your computer and use it in GitHub Desktop.
Save kuropen/346cd1327dc76ab36aa428657fe5eaa2 to your computer and use it in GitHub Desktop.
Dockerfile for mastodon-alliance-bot
FROM node:8
ENV TINI_VERSION v0.17.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/local/bin/tini
RUN chmod +x /usr/local/bin/tini
RUN git clone https://github.com/wd-shiroma/mastodon-federation-bot /bot
ADD config.json /bot/config/default.json
WORKDIR /bot
RUN yarn install
#Following test script causes error due to authentication error of remote instances:
#See https://github.com/wd-shiroma/mastodon-alliance-bot/issues/1
#RUN npm test
ENTRYPOINT ["/usr/local/bin/tini", "--"]
CMD node scripts/streaming.js
@kuropen
Copy link
Author

kuropen commented Feb 22, 2018

TODO: Change following to VOLUME

ADD config.json /bot/config/default.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment