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.2
Variables
ENV APP_HOME /myapp
RUN mkdir $APP_HOME
Inicialización
RUN bundle install
WORKDIR /myapp
Onbuild
ONBUILD RUN bundle install
# when used with another file
Comandos
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]