-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
31 lines (23 loc) · 964 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
FROM ubuntu
MAINTAINER [email protected]
RUN \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list && \
apt-get update && \
apt-get install -y mongodb-org
RUN apt-get update --fix-missing
RUN apt-get install -y --fix-missing wget default-jdk
ENV JAVA_HOME /usr/lib/jvm/default-java
ADD http://www.us.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz /tmp/
RUN tar xzvf /tmp/apache-maven-3.3.3-bin.tar.gz --directory /usr/lib
ENV PATH /usr/lib/apache-maven-3.3.3/bin:$PATH
RUN mkdir -p /opt/cyber-event-collector
ADD src /opt/cyber-event-collector/src
ADD pom.xml /opt/cyber-event-collector/pom.xml
RUN mvn --file /opt/cyber-event-collector/pom.xml clean install
VOLUME ["/data/db"]
WORKDIR /data
EXPOSE 27017
ADD server.sh /
RUN chmod u+x /server.sh
CMD ["/server.sh"]