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