1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/hubot/Dockerfile
2017-01-11 02:12:23 +08:00

34 lines
764 B
Docker

#
# Dockerfile for hubot
#
FROM node:slim
MAINTAINER kev <noreply@easypi.info>
ENV HUBOT_NAME=Hubot
ENV HUBOT_ADAPTER=slack
ENV HUBOT_DESCRIPTION=$HUBOT_NAME-$HUBOT_ADAPTER
ENV HUBOT_SLACK_TOKEN=
RUN set -xe \
&& npm install -g coffee-script \
generator-hubot \
hubot \
yo \
&& useradd -m -s /bin/bash hubot
USER hubot
WORKDIR /home/hubot
RUN set -xe \
&& yo hubot --name $HUBOT_NAME \
--description $HUBOT_DESCRIPTION \
--adapter $HUBOT_ADAPTER \
--defaults \
&& npm install hubot-$HUBOT_ADAPTER --save \
&& sed -i -r 's/^\s+#//' scripts/example.coffee
VOLUME /home/hobot/scripts
CMD ["./bin/hubot", "--adapter", "slack"]