File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed
Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 44* .iml
55.idea /
66.git /
7+ node_modules /
8+ lib /
Original file line number Diff line number Diff line change 1- FROM node
1+ FROM ivankrizsan/elastalert AS py-ea
2+
3+ FROM node:alpine
24MAINTAINER BitSensor <
[email protected] >
35EXPOSE 3030
6+
7+ RUN apk update && apk upgrade && apk add python2
8+
9+ COPY --from=py-ea /usr/lib/python2.7/site-packages /usr/lib/python2.7/site-packages
10+ COPY --from=py-ea /opt/elastalert /opt/elastalert
411
5- RUN apt-get clean && apt-get update && apt-get install -y \
6- git \
7- python2.7 \
8- python2.7-dev \
9- python-pip
10- RUN git clone https://github.com/Yelp/elastalert.git -b master --depth=1 /opt/elastalert
11- WORKDIR /opt/elastalert
1212RUN mkdir server_data
13- RUN pip install -r requirements.txt
14- WORKDIR /opt/elastalert-server
15- ADD . /opt/elastalert-server
16- ADD rule_templates/ /opt/elastalert/rule_templates/
17- ADD rules/ /opt/elastalert/rules/
18- RUN npm install --production --quiet
19- ADD config/elastalert.yaml /opt/elastalert/config.yaml
20- ADD config/elastalert-server.json config/config.json
21- ENTRYPOINT ["npm" , "start" ]
13+ WORKDIR /opt/elastalert-server
14+ COPY . /opt/elastalert-server
15+
16+ RUN npm install --production --quiet
17+ COPY config/elastalert.yaml /opt/elastalert/config.yaml
18+ COPY config/elastalert-server.json config/config.json
19+ ENTRYPOINT ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments