1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/hubot/Dockerfile

33 lines
720 B
Docker
Raw Normal View History

2015-09-26 10:52:43 +02:00
#
# Dockerfile for hubot
#
2017-01-21 12:51:37 +02:00
FROM alpine
2016-05-01 03:06:20 +02:00
MAINTAINER kev <noreply@easypi.info>
2015-09-26 10:52:43 +02:00
2017-01-10 20:12:23 +02:00
ENV HUBOT_NAME=Hubot
2015-09-26 10:52:43 +02:00
ENV HUBOT_ADAPTER=slack
ENV HUBOT_DESCRIPTION=$HUBOT_NAME-$HUBOT_ADAPTER
ENV HUBOT_SLACK_TOKEN=
2016-04-24 07:30:48 +02:00
RUN set -xe \
2017-01-21 12:51:37 +02:00
&& apk add --update ca-certificates nodejs \
&& npm install -g yo generator-hubot \
&& adduser -s /bin/sh -D hubot
2015-09-26 10:52:43 +02:00
USER hubot
WORKDIR /home/hubot
2016-04-24 07:30:48 +02:00
RUN set -xe \
&& yo hubot --name $HUBOT_NAME \
--description $HUBOT_DESCRIPTION \
--adapter $HUBOT_ADAPTER \
--defaults \
2015-09-26 10:52:43 +02:00
&& npm install hubot-$HUBOT_ADAPTER --save \
&& sed -i -r 's/^\s+#//' scripts/example.coffee
2017-01-21 12:51:37 +02:00
VOLUME /home/hobot
EXPOSE 8080
2015-09-26 10:52:43 +02:00
2016-04-24 07:30:48 +02:00
CMD ["./bin/hubot", "--adapter", "slack"]