Dockerfile Cheat Sheet
Dockerfile provides the instructions needed to build a container and the commands to be executed when the container runs.
Inheritance
FROM ruby:2.2.2Variables
ENV APP_HOME /myapp
RUN mkdir $APP_HOMEInitialization
RUN bundle installWORKDIR /myappOnbuild
ONBUILD RUN bundle install
# when used with another fileCommands
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]