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
AAF non-root
[aaf/sms.git]
/
sms-service
/
bin
/
smsdockerfile
diff --git
a/sms-service/bin/smsdockerfile
b/sms-service/bin/smsdockerfile
index
d130449
..
829f89b
100644
(file)
--- a/
sms-service/bin/smsdockerfile
+++ b/
sms-service/bin/smsdockerfile
@@
-1,13
+1,20
@@
FROM alpine:3.7
LABEL name="aaf-sms"
FROM alpine:3.7
LABEL name="aaf-sms"
-LABEL version=
1
.0.0
+LABEL version=
4
.0.0
LABEL maintainer="vamshi krishna <vn00480215@techmahindra.com>"
EXPOSE 10443
LABEL maintainer="vamshi krishna <vn00480215@techmahindra.com>"
EXPOSE 10443
-
-RUN mkdir -p /sms/auth
+RUN addgroup aaf && adduser -H -D -g "" -G aaf aaf && \
+ mkdir -p /sms/auth && \
+ chown -R aaf:aaf /sms
+ADD aaf_root_ca.cer /sms/certs/aaf_root_ca.cer
+ADD aaf-sms.pub /sms/certs/aaf-sms.pub
+ADD aaf-sms.pr /sms/certs/aaf-sms.pr
ADD sms /sms/bin/sms
RUN chmod +x /sms/bin/sms
ADD sms /sms/bin/sms
RUN chmod +x /sms/bin/sms
-
+ADD preload /sms/bin/preload
+RUN chmod +x /sms/bin/preload
+USER aaf
+WORKDIR /sms
ENTRYPOINT ["/sms/bin/sms"]
ENTRYPOINT ["/sms/bin/sms"]