Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame^] | 1 | FROM dockercentral.it.att.com:5100/com.att.sdc/openecomp/base_sdc-jetty:1.2.0-SNAPSHOT-latest |
| 2 | |
| 3 | ENV http_proxy http://one.proxy.att.com:8080 |
| 4 | ENV https_proxy http://one.proxy.att.com:8080 |
| 5 | |
| 6 | COPY chef-solo /var/opt/dcae-fe/chef-solo/ |
| 7 | |
| 8 | COPY startup.sh /var/opt/dcae-fe/ |
| 9 | |
| 10 | ADD target/dcae_*.war ${JETTY_BASE}/webapps/ |
| 11 | |
| 12 | USER root |
| 13 | |
| 14 | RUN mkdir -p /opt/logs/fe |
| 15 | |
| 16 | COPY set_user.sh /tmp/set_user.sh |
| 17 | |
| 18 | RUN sh -x /tmp/set_user.sh && rm -f /tmp/set_user.sh |
| 19 | |
| 20 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps /var/opt/dcae-fe /opt/logs /var/lib/jetty |
| 21 | |
| 22 | RUN chmod 770 /var/opt/dcae-fe/startup.sh |
| 23 | |
| 24 | EXPOSE 8082 8444 |
| 25 | |
| 26 | USER jetty |
| 27 | |
| 28 | ENTRYPOINT [ "/var/opt/dcae-fe/startup.sh" ] |
| 29 | |