Update Dockerfile
[vfc/nfvo/driver/ems.git] / ems / microservice-standalone / src / main / assembly / docker / Dockerfile
1 FROM ubuntu:14.04
2
3 ARG HTTP_PROXY=${HTTP_PROXY}
4 ARG HTTPS_PROXY=${HTTPS_PROXY}
5
6 ENV http_proxy $HTTP_PROXY
7 ENV https_proxy $HTTPS_PROXY
8
9
10 RUN apt-get update && apt-get install -y software-properties-common
11 RUN apt-get install -y wget && \
12     apt-get install -y unzip && \
13     apt-get install -y curl && \
14     apt-get install -y build-essential && \
15     apt-get install -y libssl-dev
16 RUN sudo -E add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk && apt-get install -y git curl && apt-get install -y pandoc
17
18 ADD . /service
19 WORKDIR /service
20 RUN mkdir emsdriver
21
22 # get binary zip from nexus
23 RUN wget -q -O emsdiver-standalone.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.nfvo.driver.ems.ems&a=emsdriver-standalone&v=LATEST&e=zip' && \
24     unzip emsdiver-standalone.zip -d emsdriver && \
25     rm -rf emsdiver-standalone.zip
26
27
28 EXPOSE 8206
29
30 WORKDIR /service
31 ENTRYPOINT emsdriver/docker/docker-entrypoint.sh