Skip to content

Instantly share code, notes, and snippets.

@ekristen
Created August 29, 2016 22:35
Show Gist options
  • Save ekristen/7d7faf6cbe6978b1262d83c179fe661a to your computer and use it in GitHub Desktop.
Save ekristen/7d7faf6cbe6978b1262d83c179fe661a to your computer and use it in GitHub Desktop.
Example of how to make the RUN instructions more efficient (for Medium)
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