summaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/activity-spec-docker-assembly/Dockerfile
blob: adbde5e4415a592302bbc7565fc3bcc8daa06376 (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
FROM jetty:9.4.9-alpine

EXPOSE 8080
EXPOSE 8443
EXPOSE 5005

USER root

RUN mkdir -p /etc/onap/activity-spec/be
RUN mkdir -p /var/log/ONAP/activity-spec/be

ENV CONFIG_FILES_DIR /etc/onap/activity-spec/be
ENV LOGS_DIR /var/log/ONAP/activity-spec/be

ADD activity-spec-api-docs-*.war ${JETTY_BASE}/webapps/
ADD activity-spec-war-*.war ${JETTY_BASE}/webapps/

COPY start.sh .
COPY logback.xml ${CONFIG_FILES_DIR}

RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
RUN chmod 744 start.sh

ENTRYPOINT [ "./start.sh" ]