Created
August 29, 2016 22:35
-
-
Save ekristen/7d7faf6cbe6978b1262d83c179fe661a to your computer and use it in GitHub Desktop.
Example of how to make the RUN instructions more efficient (for Medium)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu | |
| RUN \ | |
| apt-get update && \ | |
| apt-get install -y wget sudo supervisor python-software-properies && \ | |
| apt-get update && \ | |
| add-apt-repository ppa:saltstack/salt && \ | |
| apt-get update | |
| EXPOSE 4505 4506 | |
| CMD ["/sbin/sshd"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment