William Kurkian | ad1f573 | 2018-09-17 14:42:42 -0400 | [diff] [blame^] | 1 | FROM maven:3-jdk-8 as maven |
| 2 | COPY . /mavenwd |
| 3 | WORKDIR /mavenwd/ |
| 4 | RUN mvn install:install-file -Dfile=/mavenwd/libs/evel_javalib2-1.1.0.jar |
| 5 | RUN mvn -f /mavenwd/pom.xml clean package |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 6 | |
William Kurkian | ad1f573 | 2018-09-17 14:42:42 -0400 | [diff] [blame^] | 7 | FROM openjdk:8-jre-alpine |
| 8 | RUN mkdir -p /opt/ves-agent && chmod 777 -R /opt/ves-agent |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 9 | VOLUME /tmp |
William Kurkian | ad1f573 | 2018-09-17 14:42:42 -0400 | [diff] [blame^] | 10 | COPY --from=maven /mavenwd/config/config.properties /opt/ves-agent/config.properties |
| 11 | COPY --from=maven /mavenwd/target/ves-agent-0.1.0.jar app.jar |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 12 | ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] |