Fix docker build
[clamp.git] / src / main / docker / Dockerfile
1 FROM ubuntu:16.04\r
2 \r
3 MAINTAINER "The Onap Team"\r
4 LABEL Description="This immage contains an updated ubuntu 16.04 with the openjdk installed" Version="16.04-8"\r
5 \r
6 ARG http_proxy\r
7 ARG https_proxy\r
8 ENV HTTP_PROXY=$http_proxy\r
9 ENV HTTPS_PROXY=$https_proxy\r
10 ENV http_proxy=$HTTP_PROXY\r
11 ENV https_proxy=$HTTPS_PROXY\r
12 \r
13 RUN test -n "$http_proxy" && echo "Acquire::Proxy \"http://$http_proxy\";" > /etc/apt/apt.conf.d/02proxy || true &&  \\r
14     apt-get update &&  \\r
15     apt-get -y dist-upgrade &&  \\r
16     apt-get install -y openjdk-8-jre-headless\r
17 \r
18 COPY onap-clamp/clamp.jar /opt/clamp/app.jar\r
19 VOLUME /etc\r
20 COPY onap-clamp/startService.sh /opt/clamp/startService.sh\r
21 RUN chmod 700 /opt/clamp/startService.sh\r
22 \r
23 WORKDIR /opt/clamp/\r
24 ENTRYPOINT ./startService.sh \r