blob: 05bde1234b45ece27900256cbb0cfcf538d5d498 [file] [log] [blame]
William Kurkianad1f5732018-09-17 14:42:42 -04001FROM maven:3-jdk-8 as maven
2COPY . /mavenwd
3WORKDIR /mavenwd/
William Kurkianad1f5732018-09-17 14:42:42 -04004RUN mvn -f /mavenwd/pom.xml clean package
William Kurkianbde6fc92018-07-13 17:19:58 -04005
William Kurkianad1f5732018-09-17 14:42:42 -04006FROM openjdk:8-jre-alpine
7RUN mkdir -p /opt/ves-agent && chmod 777 -R /opt/ves-agent
William Kurkianbde6fc92018-07-13 17:19:58 -04008VOLUME /tmp
William Kurkianad1f5732018-09-17 14:42:42 -04009COPY --from=maven /mavenwd/config/config.properties /opt/ves-agent/config.properties
10COPY --from=maven /mavenwd/target/ves-agent-0.1.0.jar app.jar
William Kurkianbde6fc92018-07-13 17:19:58 -040011ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]