blob: fe7e20bd3cb81be8048ff74278a6975df10f10df [file] [log] [blame]
sheetalmaafdcc22018-04-18 11:21:26 +05301FROM jetty:9.4.9-alpine
sheetalmed128902018-03-13 19:32:08 +05302
3EXPOSE 8080
4EXPOSE 8443
5EXPOSE 5005
6
7ARG ARTIFACT_VERSION
8
sheetalm450c94f2018-04-04 15:06:18 +05309ENV LOGBACK_FILE_DIR /etc/onap/activity-spec/be/
10
sheetalmed128902018-03-13 19:32:08 +053011# See https://hub.docker.com/_/jetty/
12ARG WEBAPPS_DIR=${JETTY_BASE}/webapps/
13
14COPY activity-spec-api-docs/target/activity-spec-api-docs-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR}
15
16COPY activity-spec-war/target/activity-spec-war-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR}
17
18COPY activity-spec-assembly/configuration.yaml .
19COPY activity-spec-assembly/start.sh .
sheetalm450c94f2018-04-04 15:06:18 +053020COPY activity-spec-assembly/logback.xml ${LOGBACK_FILE_DIR}
sheetalmed128902018-03-13 19:32:08 +053021
22USER root
23
24RUN chown jetty:jetty start.sh
25RUN chmod 744 start.sh
26
27ENTRYPOINT ["./start.sh"]