summaryrefslogtreecommitdiffstats
path: root/saltstack-server/src/main/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'saltstack-server/src/main/docker/Dockerfile')
-rw-r--r--saltstack-server/src/main/docker/Dockerfile20
1 files changed, 8 insertions, 12 deletions
diff --git a/saltstack-server/src/main/docker/Dockerfile b/saltstack-server/src/main/docker/Dockerfile
index 710d45d7..da4e25db 100644
--- a/saltstack-server/src/main/docker/Dockerfile
+++ b/saltstack-server/src/main/docker/Dockerfile
@@ -1,7 +1,7 @@
-#FROM centos:7
FROM onap/ccsdk-alpine-j11-image:${project.docker.latestfulltag.version}
-
+LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
USER root
+
RUN apk add git tmux vim salt-master salt-minion
#RUN yum clean all && \
@@ -11,16 +11,12 @@ RUN apk add git tmux vim salt-master salt-minion
# yum install -y sudo git tmux vim salt-master salt-minion && \
# yum clean all
-EXPOSE 4505 4506
-
# Create non root user
-RUN addgroup -S saltstack && adduser -S saltstack -G saltstack
-# RUN groupadd --system saltstack && useradd --system -g saltstack saltstack
-RUN chown -R saltstack /etc/salt /var/log/salt
-RUN mkdir /var/run/salt && chown saltstack:saltstack /var/run/salt
-RUN mkdir /var/cache/salt && chown saltstack:saltstack /var/cache/salt
+RUN addgroup -S saltstack && adduser -S saltstack -G saltstack \
+ && mkdir -p /var/run/salt /var/cache/salt \
+ && chown -R saltstack:saltstack /etc/salt /var/log/salt /var/run/salt /var/cache/salt
-USER saltstack
-# Run salt-master in foreground (not as a daemon)
-ENTRYPOINT [ "/usr/bin/salt-master" ] \ No newline at end of file
+USER saltstack
+EXPOSE 4505 4506
+ENTRYPOINT [ "/usr/bin/salt-master" ]