Code Review
/
aaf
/
sms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove root cert from quorum client image
[aaf/sms.git]
/
sms-service
/
bin
/
quorumdockerfile
diff --git
a/sms-service/bin/quorumdockerfile
b/sms-service/bin/quorumdockerfile
index
08676dc
..
6da3271
100644
(file)
--- a/
sms-service/bin/quorumdockerfile
+++ b/
sms-service/bin/quorumdockerfile
@@
-1,11
+1,14
@@
FROM alpine:3.7
LABEL name="aaf-sms-quorumclient"
FROM alpine:3.7
LABEL name="aaf-sms-quorumclient"
-LABEL version=
1
.0.0
+LABEL version=
4
.0.0
LABEL maintainer="Girish Havaldar <hg0071052@techmahindra.com>"
LABEL maintainer="Girish Havaldar <hg0071052@techmahindra.com>"
-
-RUN mkdir -p /quorumclient/auth
+RUN addgroup aaf && adduser -H -D -g "" -G aaf aaf && \
+ mkdir -p /quorumclient/auth && \
+ mkdir -p /quorumclient/certs && \
+ chown -R aaf:aaf /quorumclient
ADD quorumclient /quorumclient/bin/quorumclient
RUN chmod +x /quorumclient/bin/quorumclient
ADD quorumclient /quorumclient/bin/quorumclient
RUN chmod +x /quorumclient/bin/quorumclient
-
+USER aaf
+WORKDIR /quorumclient
ENTRYPOINT ["/quorumclient/bin/quorumclient"]
ENTRYPOINT ["/quorumclient/bin/quorumclient"]