-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:16.04
MAINTAINER Stephane Jourdan <sjourdan@greenalto.com>
ENV REFRESHED_AT 2016-09-12
RUN apt-get update
RUN apt-get -yqq install redis-server nodejs npm && \
apt-get -yqq clean && \
apt-get -yqq autoclean && \
apt-get -yqq autoremove && \
rm -rf /var/lib/apt/* && \
rm -rf /var/lib/cache/* && \
rm -rf /var/lib/log/* && \
rm -rf /tmp/*
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN npm install -g coffee-script
RUN npm install -g yo generator-hubot
RUN useradd -d /hubot -m -s /bin/bash -U hubot
USER hubot
WORKDIR /hubot
RUN yo hubot --owner="Ray NCF <ray.ncf@squarescale.com>" --name="ray" --description="Ray NCF Hubot" --defaults
# Add here all the hubot plugins
RUN npm install hubot-slack --save && npm install
RUN npm install hubot-circleci --save && npm install
RUN npm install hubot-http-status --save && npm install
RUN npm install hubot-semaphoreapp --save && npm install
COPY external-scripts.json /hubot/
RUN rm -rf /hubot/hubot-scripts.json
CMD ["bin/hubot", "--adapter", "slack"]