1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00
dockerfiles/hubot/Dockerfile

43 lines
1.0 KiB
Docker
Raw Normal View History

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