-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (27 loc) · 880 Bytes
/
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
FROM alpine
MAINTAINER Adam Crews <[email protected]>
# Install Dependencies
RUN apk update && apk upgrade \
&& apk add git \
&& apk add nodejs \
&& apk add nodejs-npm \
&& apk add python \
&& apk add curl \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python \
&& pip install awscli \
&& npm install -g npm \
&& npm install -g coffee-script \
&& npm install -g yo generator-hubot \
&& apk --purge -v del py-pip \
&& rm -rf /var/cache/apk/*
RUN adduser -h /hubot -s /bin/bash -S hubot
USER hubot
WORKDIR /hubot
# Install hubot
RUN yo hubot --owner="Adam Crews <[email protected]>" --name "ash" --description="There is an explanation for this, you know." --defaults
COPY package.json package.json
RUN npm install
COPY external-scripts.json external-scripts.json
EXPOSE 9090
# Just Do It!
ENTRYPOINT [ "/bin/sh", "-c", "bin/hubot --adapter slack"]