aboutsummaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/Dockerfile
blob: fe7e20bd3cb81be8048ff74278a6975df10f10df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM jetty:9.4.9-alpine

EXPOSE 8080
EXPOSE 8443
EXPOSE 5005

ARG ARTIFACT_VERSION

ENV LOGBACK_FILE_DIR /etc/onap/activity-spec/be/

# See https://hub.docker.com/_/jetty/
ARG WEBAPPS_DIR=${JETTY_BASE}/webapps/

COPY activity-spec-api-docs/target/activity-spec-api-docs-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR}

COPY activity-spec-war/target/activity-spec-war-${ARTIFACT_VERSION}.war ${WEBAPPS_DIR}

COPY activity-spec-assembly/configuration.yaml .
COPY activity-spec-assembly/start.sh .
COPY activity-spec-assembly/logback.xml ${LOGBACK_FILE_DIR}

USER root

RUN chown jetty:jetty start.sh
RUN chmod 744 start.sh

ENTRYPOINT ["./start.sh"]