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