Skip to content

Commit 9422a49

Browse files
author
Martin Hoefling
committed
optimize dockerfile
1 parent 38d6bce commit 9422a49

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM martinhoefling/salt-minion:debian
22
MAINTAINER Martin Hoefling <[email protected]>
33

44
# push formula
5-
ADD dovecot /srv/salt/dovecot
6-
ADD pillar.example /srv/pillar/example.sls
7-
RUN echo "file_client: local" > /etc/salt/minion.d/local.conf
8-
RUN echo "base:" > /srv/pillar/top.sls
9-
RUN echo " '*':" >> /srv/pillar/top.sls
10-
RUN echo " - example" >> /srv/pillar/top.sls
11-
RUN salt-call --local state.sls dovecot | tee log.txt && grep "Failed: 0" log.txt
5+
COPY dovecot /srv/salt/dovecot
6+
COPY pillar.example /srv/pillar/example.sls
7+
RUN echo "file_client: local" > /etc/salt/minion.d/local.conf && \
8+
echo "base:" > /srv/pillar/top.sls && \
9+
echo " '*':" >> /srv/pillar/top.sls && \
10+
echo " - example" >> /srv/pillar/top.sls && \
11+
salt-call --local state.sls dovecot | tee log.txt && grep "Failed: 0" log.txt

0 commit comments

Comments
 (0)