blob: 3df175a3e209ee2acd9d03705f442a37bd577070 [file] [log] [blame]
FROM maven:3.5-jdk-8 as maven
COPY . /mavenwd
WORKDIR /mavenwd/
RUN mvn -f /mavenwd/pom.xml clean package
FROM openjdk:8-jre-alpine3.8
RUN mkdir -p /opt/ves-agent && chmod 777 -R /opt/ves-agent
VOLUME /tmp
COPY --from=maven /mavenwd/config/config.properties /opt/ves-agent/config.properties
COPY --from=maven /mavenwd/target/ves-agent-0.1.0.jar app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]