sheetalm | aafdcc2 | 2018-04-18 11:21:26 +0530 | [diff] [blame] | 1 | FROM jetty:9.4.9-alpine |
sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 2 | |
| 3 | EXPOSE 8080 |
| 4 | EXPOSE 8443 |
| 5 | EXPOSE 5005 |
| 6 | |
| 7 | ARG ARTIFACT_VERSION |
| 8 | |
sheetalm | 450c94f | 2018-04-04 15:06:18 +0530 | [diff] [blame] | 9 | ENV LOGBACK_FILE_DIR /etc/onap/activity-spec/be/ |
| 10 | |
sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 11 | # See https://hub.docker.com/_/jetty/ |
| 12 | ARG WEBAPPS_DIR=${JETTY_BASE}/webapps/ |
| 13 | |
| 14 | COPY activity-spec-api-docs/target/activity-spec-api-docs-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR} |
| 15 | |
| 16 | COPY activity-spec-war/target/activity-spec-war-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR} |
| 17 | |
| 18 | COPY activity-spec-assembly/configuration.yaml . |
| 19 | COPY activity-spec-assembly/start.sh . |
sheetalm | 450c94f | 2018-04-04 15:06:18 +0530 | [diff] [blame] | 20 | COPY activity-spec-assembly/logback.xml ${LOGBACK_FILE_DIR} |
sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 21 | |
| 22 | USER root |
| 23 | |
| 24 | RUN chown jetty:jetty start.sh |
| 25 | RUN chmod 744 start.sh |
| 26 | |
| 27 | ENTRYPOINT ["./start.sh"] |