Created
February 22, 2018 14:14
-
-
Save kuropen/346cd1327dc76ab36aa428657fe5eaa2 to your computer and use it in GitHub Desktop.
Dockerfile for mastodon-alliance-bot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO: Change following to VOLUME
ADD config.json /bot/config/default.json