2015-09-26 10:52:43 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for hubot
|
|
|
|
#
|
|
|
|
|
2023-11-13 05:20:03 +02:00
|
|
|
FROM alpine:3.18
|
2020-03-25 09:35:26 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
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
|
2023-11-13 05:20:03 +02:00
|
|
|
ENV HUBOT_LOG_LEVEL=info
|
2015-09-26 10:52:43 +02:00
|
|
|
ENV HUBOT_SLACK_TOKEN=
|
|
|
|
|
2023-11-17 12:30:28 +02:00
|
|
|
ENV PATH=/home/hubot/node_modules/.bin:$PATH
|
|
|
|
|
2016-04-24 07:30:48 +02:00
|
|
|
RUN set -xe \
|
2022-06-17 09:33:31 +02:00
|
|
|
&& apk add --update bash ca-certificates nodejs npm python3 \
|
2017-01-21 12:51:37 +02:00
|
|
|
&& npm install -g yo generator-hubot \
|
2022-06-17 09:33:31 +02:00
|
|
|
&& adduser -s /bin/bash -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 \
|
2017-04-21 09:50:28 +02:00
|
|
|
&& npm install --save hubot-$HUBOT_ADAPTER \
|
|
|
|
htmlparser \
|
|
|
|
moment \
|
|
|
|
querystring \
|
|
|
|
soupselect \
|
|
|
|
underscore \
|
|
|
|
underscore.string \
|
|
|
|
url \
|
2015-09-26 10:52:43 +02:00
|
|
|
&& sed -i -r 's/^\s+#//' scripts/example.coffee
|
|
|
|
|
2019-07-02 07:43:57 +02:00
|
|
|
VOLUME /home/hobot \
|
|
|
|
/usr/local/bin \
|
2023-11-13 05:20:03 +02:00
|
|
|
/usr/lib/python3.11/site-packages
|
2019-07-02 07:43:57 +02:00
|
|
|
|
2017-01-21 12:51:37 +02:00
|
|
|
EXPOSE 8080
|
2015-09-26 10:52:43 +02:00
|
|
|
|
2016-04-24 07:30:48 +02:00
|
|
|
CMD ["./bin/hubot", "--adapter", "slack"]
|