blob: 482cd205aedfe6b2303956b8898e346dfda42336 [file] [log] [blame]
FROM jetty:9.4.31-jre11-slim
EXPOSE 8080
EXPOSE 8443
USER root
ARG ARTIFACT
COPY org.onap.sdc.p12 org.onap.sdc.trust.jks ${JETTY_BASE}/etc/
ADD --chown=jetty:jetty ${ARTIFACT} ${JETTY_BASE}/webapps/
RUN chown -R jetty:jetty ${JETTY_BASE}/webapps ${JETTY_BASE}/etc/
COPY --chown=jetty:jetty startup.sh .
RUN chmod 744 startup.sh
USER jetty
ENTRYPOINT [ "./startup.sh" ]