Skip to content

Instantly share code, notes, and snippets.

@jancorg
Last active Oct 2, 2017
Embed
What would you like to do?
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