diff options
-rw-r--r-- | activiti-extension/src/main/docker/Dockerfile | 14 | ||||
-rw-r--r-- | wfenginemgrservice/src/main/docker/Dockerfile | 4 |
2 files changed, 4 insertions, 14 deletions
diff --git a/activiti-extension/src/main/docker/Dockerfile b/activiti-extension/src/main/docker/Dockerfile index dd207cd..21bde27 100644 --- a/activiti-extension/src/main/docker/Dockerfile +++ b/activiti-extension/src/main/docker/Dockerfile @@ -1,22 +1,16 @@ -FROM openjdk:8u121-jre-alpine +FOM 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 && \ + rm -rf /var/cache/apk/* && \ 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/* + adduser onap -D -G onap -u 1000 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 +EXPOSE 8080 ENTRYPOINT ["./bin/entrypoint.sh"] CMD ["start"] diff --git a/wfenginemgrservice/src/main/docker/Dockerfile b/wfenginemgrservice/src/main/docker/Dockerfile index 0758a3b..d70fa73 100644 --- a/wfenginemgrservice/src/main/docker/Dockerfile +++ b/wfenginemgrservice/src/main/docker/Dockerfile @@ -5,12 +5,8 @@ WORKDIR /home/onap/workflow/wfenginemgrservice EXPOSE 10550
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 bin /home/onap/workflow/wfenginemgrservice/
|