Skip to content

Instantly share code, notes, and snippets.

@jancorg
Last active October 2, 2017 07:34
Show Gist options
  • Save jancorg/2d14912f35f756b97912 to your computer and use it in GitHub Desktop.
Save jancorg/2d14912f35f756b97912 to your computer and use it in GitHub Desktop.
Hubot + slack + scripts Dockerfile
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