Hoja de Referencia de Dockerfile
Dockerfile proporciona las instrucciones necesarias para construir un contenedor y los comandos que se ejecutarán cuando el contenedor se inicie.
Herencia (Inheritance)
FROM ruby:2.2.2Variables
ENV APP_HOME /myapp
RUN mkdir $APP_HOMEInicialización
RUN bundle installWORKDIR /myappOnbuild
ONBUILD RUN bundle install
# when used with another fileComandos
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]