Skip to content

Instantly share code, notes, and snippets.

@paulczar
Created June 14, 2013 03:38
Show Gist options
  • Save paulczar/5779298 to your computer and use it in GitHub Desktop.
Save paulczar/5779298 to your computer and use it in GitHub Desktop.
Chef-Zero Docker File
# Chef-Zero
#
# VERSION 0.0.1
FROM base
MAINTAINER Paul Czarkowski "[email protected]"
RUN apt-get update
RUN apt-get install -y ruby1.9.1-dev build-essential
RUN gem install chef-zero
RUN apt-get remove -y build-essential
RUN apt-get clean
RUN /usr/local/bin/chef-zero -H 0.0.0.0
@ghostsquad
Copy link

running apt-get clean in a separate RUN layer doesn't actually remove the overhead from previous RUN apt-get layers. You'd need to combine all those layers into a single layer to get the benefit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment