Skip to content

Commit

Permalink
add CMD directive to test Dockerfile template
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianvf committed Dec 11, 2018
1 parent 75f9064 commit 039019a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/resources/playbooks/docker/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y pyth
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi

CMD ["sh", "-c", "while true; do sleep 10000; done"]

0 comments on commit 039019a

Please sign in to comment.