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/ |
William Kurkian | ad1f573 | 2018-09-17 14:42:42 -0400 | [diff] [blame] | 4 | RUN mvn -f /mavenwd/pom.xml clean package |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 5 | |
William Kurkian | ad1f573 | 2018-09-17 14:42:42 -0400 | [diff] [blame] | 6 | FROM openjdk:8-jre-alpine |
| 7 | RUN mkdir -p /opt/ves-agent && chmod 777 -R /opt/ves-agent |
William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame] | 8 | VOLUME /tmp |
William Kurkian | ad1f573 | 2018-09-17 14:42:42 -0400 | [diff] [blame] | 9 | COPY --from=maven /mavenwd/config/config.properties /opt/ves-agent/config.properties |
| 10 | 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] | 11 | ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] |