Last active
October 2, 2017 07:34
-
-
Save jancorg/2d14912f35f756b97912 to your computer and use it in GitHub Desktop.
Hubot + slack + scripts Dockerfile
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 dockerfile/nodejs | |
MAINTAINER Marvin | |
WORKDIR /root | |
RUN npm install -g yo generator-hubot | |
RUN useradd -ms /bin/bash marvin | |
ENV HOME /home/marvin | |
#Place here variables needed by hubot scripts | |
ADD env-vars.sh /home/marvin/.profile | |
RUN chown marvin /home/marvin/.profile | |
USER marvin | |
WORDIR /home/marvin | |
RUN echo n | yo hubot --defaults | |
RUN npm install hubot-slack hubot-scripts githubot --save | |
# enable plugins | |
RUN echo [ \'github-merge.coffee\' ] > hubot-scripts.json | |
CMD ["/home/marvin/bin/hubot", "--name", "marvin"] | |
EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment