blob: d45fefa89fe641fe49f63f14922555b98bc688b3 [file] [log] [blame]
Eran (ev672n), Vosk4895f4a2018-08-08 12:58:21 +03001FROM onap/base_sdc-jetty:1.2.0-SNAPSHOT-latest
2
3COPY docker/chef-solo /var/opt/dcae-dt/chef-solo/
4
5COPY docker/startup.sh /var/opt/dcae-dt/
6
7ADD target/dcae-dt.war ${JETTY_BASE}/webapps/
8
9USER root
10
11RUN mkdir -p /opt/logs/dcae-dt
12
13COPY docker/set_user.sh /tmp/set_user.sh
14
15RUN sh -x /tmp/set_user.sh && rm -f /tmp/set_user.sh
16
17RUN chown -R jetty:jetty ${JETTY_BASE}/webapps /var/opt/dcae-dt /opt/logs /var/lib/jetty
18
19RUN chmod 770 /var/opt/dcae-dt/startup.sh
20
21EXPOSE 8186 9446
22
23USER jetty
24
25ENTRYPOINT [ "/var/opt/dcae-dt/startup.sh" ]