xuegao | c51038a | 2020-09-18 10:22:19 +0200 | [diff] [blame] | 1 | FROM jetty:9.4.31-jre11-slim |
avigaffa | aa3351b | 2019-05-05 16:20:24 +0300 | [diff] [blame] | 2 | |
3 | EXPOSE 8080 | ||||
4 | EXPOSE 8443 | ||||
5 | |||||
6 | USER root | ||||
7 | |||||
8 | ARG ARTIFACT | ||||
9 | |||||
r.bogacki | 9c48e67 | 2019-10-10 08:48:03 +0200 | [diff] [blame] | 10 | COPY org.onap.sdc.p12 org.onap.sdc.trust.jks ${JETTY_BASE}/etc/ |
r.bogacki | e69e424 | 2019-10-01 08:58:51 +0200 | [diff] [blame] | 11 | |
MichaelMorris | 1b548a3 | 2020-03-10 17:02:34 +0000 | [diff] [blame] | 12 | ADD --chown=jetty:jetty ${ARTIFACT} ${JETTY_BASE}/webapps/ |
r.bogacki | 9c48e67 | 2019-10-10 08:48:03 +0200 | [diff] [blame] | 13 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps ${JETTY_BASE}/etc/ |
avigaffa | aa3351b | 2019-05-05 16:20:24 +0300 | [diff] [blame] | 14 | |
MichaelMorris | 1b548a3 | 2020-03-10 17:02:34 +0000 | [diff] [blame] | 15 | COPY --chown=jetty:jetty startup.sh . |
avigaffa | aa3351b | 2019-05-05 16:20:24 +0300 | [diff] [blame] | 16 | RUN chmod 744 startup.sh |
17 | |||||
MichaelMorris | 1b548a3 | 2020-03-10 17:02:34 +0000 | [diff] [blame] | 18 | USER jetty |
r.bogacki | e69e424 | 2019-10-01 08:58:51 +0200 | [diff] [blame] | 19 | ENTRYPOINT [ "./startup.sh" ] |