summaryrefslogtreecommitdiffstats
path: root/activiti-extension/src/main/docker/Dockerfile
blob: dd207cda26f2cd2f6eabbaecf21b4360dbecad1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM openjdk:8u121-jre-alpine
LABEL maintainer=Zhaoxing(mzhx.meng@gmail.com)

WORKDIR /home/onap/workflow/wfengineactiviti
EXPOSE 8080

RUN apk add --update curl && \
    apk --no-cache add sudo && \
    addgroup -g 1000 -S onap && \
    adduser onap -D -G onap -u 1000 && \
    chmod u+w /etc/sudoers && \
    sed -i '/User privilege/a\\onap    ALL=(ALL:ALL) NOPASSWD:ALL' /etc/sudoers && \
    chmod u-x /etc/sudoers && \
    rm -rf /var/cache/apk/*

ADD apache-tomcat /home/onap/workflow/wfengineactiviti/
RUN chmod 755 /home/onap/workflow/wfengineactiviti/bin/*.sh && chown onap:onap -R /home/onap

USER onap
WORKDIR /home/onap/workflow/wfengineactiviti
ENTRYPOINT ["./bin/entrypoint.sh"]
CMD ["start"]