1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/hubot/Dockerfile

40 lines
989 B
Docker
Raw Normal View History

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