William Kurkian | bde6fc9 | 2018-07-13 17:19:58 -0400 | [diff] [blame^] | 1 | FROM ubuntu:16.04 |
2 | RUN apt-get update && \ | ||||
3 | apt-get upgrade -y && \ | ||||
4 | apt-get install -y openjdk-8-jdk curl less kafkacat && \ | ||||
5 | apt-get clean | ||||
6 | |||||
7 | RUN mkdir /opt/ves-agent && chmod 777 -R /opt/ves-agent | ||||
8 | VOLUME /tmp | ||||
9 | ARG JAR_FILE | ||||
10 | ARG PROPERTIES_FILE | ||||
11 | COPY ${PROPERTIES_FILE} /opt/ves-agent/config.properties | ||||
12 | COPY ${JAR_FILE} app.jar | ||||
13 | ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] |