File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed
Expand file tree Collapse file tree 2 files changed +16
-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 ivankrizsan/elastalert AS py-ea
2-
3- FROM node:alpine
1+ FROM node
42MAINTAINER BitSensor <
[email protected] >
53EXPOSE 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
114
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- 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/config.json config/config.json
19- COPY rule_templates/ /opt/elastalert/rule_templates
2013
14+ RUN pip install -r requirements.txt
15+ WORKDIR /opt/elastalert-server
16+ ADD . /opt/elastalert-server
17+ ADD rule_templates/ /opt/elastalert/rule_templates/
18+ ADD rules/ /opt/elastalert/rules/
19+ RUN npm install --production --quiet
20+ ADD config/elastalert.yaml /opt/elastalert/config.yaml
21+ ADD config/elastalert-server.json config/config.json
2122ENTRYPOINT ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments