blob: 482cd205aedfe6b2303956b8898e346dfda42336 [file] [log] [blame]
xuegaoc51038a2020-09-18 10:22:19 +02001FROM jetty:9.4.31-jre11-slim
avigaffaaa3351b2019-05-05 16:20:24 +03002
3EXPOSE 8080
4EXPOSE 8443
5
6USER root
7
8ARG ARTIFACT
9
r.bogacki9c48e672019-10-10 08:48:03 +020010COPY org.onap.sdc.p12 org.onap.sdc.trust.jks ${JETTY_BASE}/etc/
r.bogackie69e4242019-10-01 08:58:51 +020011
MichaelMorris1b548a32020-03-10 17:02:34 +000012ADD --chown=jetty:jetty ${ARTIFACT} ${JETTY_BASE}/webapps/
r.bogacki9c48e672019-10-10 08:48:03 +020013RUN chown -R jetty:jetty ${JETTY_BASE}/webapps ${JETTY_BASE}/etc/
avigaffaaa3351b2019-05-05 16:20:24 +030014
MichaelMorris1b548a32020-03-10 17:02:34 +000015COPY --chown=jetty:jetty startup.sh .
avigaffaaa3351b2019-05-05 16:20:24 +030016RUN chmod 744 startup.sh
17
MichaelMorris1b548a32020-03-10 17:02:34 +000018USER jetty
r.bogackie69e4242019-10-01 08:58:51 +020019ENTRYPOINT [ "./startup.sh" ]