FROM onap/base_sdc-jetty:1.6.0

RUN mkdir -p ${JETTY_BASE}/config/catalog-fe

COPY --chown=jetty:jetty chef-solo ${JETTY_BASE}/chef-solo/

COPY --chown=jetty:jetty chef-repo/cookbooks ${JETTY_BASE}/chef-solo/cookbooks/

ADD --chown=jetty:jetty onboarding*.war         ${JETTY_BASE}/webapps/

ADD --chown=jetty:jetty catalog-fe-*.war        ${JETTY_BASE}/webapps/

COPY --chown=jetty:jetty startup.sh ${JETTY_BASE}

RUN chmod 770 ${JETTY_BASE}/startup.sh

ENTRYPOINT ${JETTY_BASE}/startup.sh