blob: a2c9a4c2eada3524fd58e752376d764bcf01bc75 [file] [log] [blame]
William Kurkianad1f5732018-09-17 14:42:42 -04001FROM maven:3-jdk-8 as maven
2COPY . /mavenwd
3WORKDIR /mavenwd/
4RUN mvn install:install-file -Dfile=/mavenwd/libs/evel_javalib2-1.1.0.jar
5RUN mvn -f /mavenwd/pom.xml clean package
William Kurkianbde6fc92018-07-13 17:19:58 -04006
William Kurkianad1f5732018-09-17 14:42:42 -04007FROM openjdk:8-jre-alpine
8RUN mkdir -p /opt/ves-agent && chmod 777 -R /opt/ves-agent
William Kurkianbde6fc92018-07-13 17:19:58 -04009VOLUME /tmp
William Kurkianad1f5732018-09-17 14:42:42 -040010COPY --from=maven /mavenwd/config/config.properties /opt/ves-agent/config.properties
11COPY --from=maven /mavenwd/target/ves-agent-0.1.0.jar app.jar
William Kurkianbde6fc92018-07-13 17:19:58 -040012ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]