Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 1 | FROM docker.io/openjdk:8-jre-slim |
fkrzywka | f811f4a | 2018-06-01 14:49:42 +0200 | [diff] [blame] | 2 | |
fkrzywka | e74c9e1 | 2018-06-06 10:43:53 +0200 | [diff] [blame] | 3 | LABEL copyright="Copyright (C) 2018 NOKIA" |
fkrzywka | f811f4a | 2018-06-01 14:49:42 +0200 | [diff] [blame] | 4 | LABEL license.name="The Apache Software License, Version 2.0" |
| 5 | LABEL license.url="http://www.apache.org/licenses/LICENSE-2.0" |
fkrzywka | 4b8cfb3 | 2018-06-01 12:45:22 +0200 | [diff] [blame] | 6 | LABEL maintainer="Nokia Wroclaw ONAP Team" |
| 7 | |
Jakub Dudycz | 67702df | 2018-08-08 09:17:14 +0200 | [diff] [blame] | 8 | RUN apt-get update \ |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 9 | && apt-get install -y --no-install-recommends curl netcat \ |
Jakub Dudycz | 67702df | 2018-08-08 09:17:14 +0200 | [diff] [blame] | 10 | && apt-get clean |
| 11 | |
fkrzywka | 4b8cfb3 | 2018-06-01 12:45:22 +0200 | [diff] [blame] | 12 | WORKDIR /opt/ves-hv-collector |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 13 | ENTRYPOINT ["./run-java.sh", "run"] |
| 14 | COPY target/docker-extra/run-java/run-java.sh ./ |
| 15 | |
| 16 | ENV JAVA_MAIN_CLASS=org.onap.dcae.collectors.veshv.main.MainKt |
| 17 | |
fkrzywka | 4b8cfb3 | 2018-06-01 12:45:22 +0200 | [diff] [blame] | 18 | COPY target/libs/external/* ./ |
| 19 | COPY target/libs/internal/* ./ |
Piotr Jaszczyk | 07bbbf7 | 2018-06-07 11:52:16 +0200 | [diff] [blame] | 20 | COPY target/hv-collector-main-*.jar ./ |