ChrisC | 5e9feb2 | 2017-06-21 02:38:57 -0700 | [diff] [blame^] | 1 | FROM ubuntu:16.04 |
| 2 | |
| 3 | MAINTAINER "The Onap Team" |
| 4 | LABEL Description="This image contains an updated ubuntu 16.04 with the openjdk installed" Version="16.04-8" |
| 5 | |
| 6 | ARG http_proxy |
| 7 | ARG https_proxy |
| 8 | ENV HTTP_PROXY=$http_proxy |
| 9 | ENV HTTPS_PROXY=$https_proxy |
| 10 | ENV http_proxy=$HTTP_PROXY |
| 11 | ENV https_proxy=$HTTPS_PROXY |
| 12 | |
| 13 | RUN test -n "$http_proxy" && echo "Acquire::Proxy \"http://$http_proxy\";" > /etc/apt/apt.conf.d/02proxy || true && \ |
| 14 | apt-get update && \ |
| 15 | apt-get -y dist-upgrade && \ |
| 16 | apt-get install -y openjdk-8-jre-headless |
| 17 | |
| 18 | ADD clds-0.0.1-SNAPSHOT.jar /opt/clamp/app.jar |
| 19 | VOLUME /etc |
| 20 | ADD /etc/ /etc/ |
| 21 | ADD startService.sh /opt/clamp/startService.sh |
| 22 | RUN chmod 700 /opt/clamp/startService.sh |
| 23 | |
| 24 | WORKDIR /opt/clamp/ |
| 25 | ENTRYPOINT ./startService.sh |