priyanshu | daf0dfe | 2018-05-28 15:29:26 +0300 | [diff] [blame^] | 1 | FROM jetty:9.4.9-alpine |
| 2 | |
| 3 | EXPOSE 8080 |
| 4 | EXPOSE 8443 |
| 5 | EXPOSE 5005 |
| 6 | |
| 7 | USER root |
| 8 | |
| 9 | RUN mkdir -p /etc/onap/activity-spec/be |
| 10 | RUN mkdir -p /var/log/ONAP/activity-spec/be |
| 11 | |
| 12 | ENV CONFIG_FILES_DIR /etc/onap/activity-spec/be |
| 13 | ENV LOGS_DIR /var/log/ONAP/activity-spec/be |
| 14 | |
| 15 | ADD activity-spec-api-docs-*.war ${JETTY_BASE}/webapps/ |
| 16 | ADD activity-spec-war-*.war ${JETTY_BASE}/webapps/ |
| 17 | |
| 18 | COPY start.sh . |
| 19 | COPY logback.xml ${CONFIG_FILES_DIR} |
| 20 | |
| 21 | RUN chown -R jetty:jetty ${JETTY_BASE}/webapps |
| 22 | RUN chmod 744 start.sh |
| 23 | |
| 24 | ENTRYPOINT [ "./start.sh" ] |