Modify zip file url in 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
11 RUN apt-get update && apt-get install -y openjdk-8-jdk 
12
13 ADD . /service
14 WORKDIR /service
15 RUN mkdir emsdriver
16
17 # get binary zip from nexus
18 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' && \
19     unzip emsdiver-standalone.zip -d emsdriver && \
20     rm -rf emsdiver-standalone.zip
21
22
23 EXPOSE 8206
24
25 WORKDIR /service
26 ENTRYPOINT emsdriver/docker/docker-entrypoint.sh