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

40 lines
1017 B
Docker
Raw Normal View History

2017-01-11 20:01:57 +02:00
#
# Dockerfile for hubot-arm
#
2017-03-04 16:47:24 +02:00
FROM easypi/alpine-arm
2017-01-11 20:01:57 +02:00
MAINTAINER EasyPi Software Foundation
ENV HUBOT_NAME=Hubot
ENV HUBOT_ADAPTER=slack
ENV HUBOT_DESCRIPTION=$HUBOT_NAME-$HUBOT_ADAPTER
ENV HUBOT_SLACK_TOKEN=
RUN set -xe \
2017-07-10 11:02:16 +02:00
&& apk add --update ca-certificates nodejs nodejs-npm \
2017-01-11 20:01:57 +02:00
&& npm install -g yo generator-hubot \
&& adduser -s /bin/sh -D hubot
USER hubot
WORKDIR /home/hubot
RUN set -xe \
&& yo hubot --name $HUBOT_NAME \
--description $HUBOT_DESCRIPTION \
--adapter $HUBOT_ADAPTER \
--defaults \
2017-04-21 09:50:28 +02:00
&& npm install --save hubot-$HUBOT_ADAPTER \
htmlparser \
moment \
querystring \
soupselect \
underscore \
underscore.string \
url \
2017-01-11 20:01:57 +02:00
&& sed -i -r 's/^\s+#//' scripts/example.coffee
2017-01-21 12:51:37 +02:00
VOLUME /home/hobot
2017-01-11 20:01:57 +02:00
EXPOSE 8080
CMD ["./bin/hubot", "--adapter", "slack"]