O Dockerfile fornece as instruções necessárias para construir um contentor e os comandos a serem executados quando o contentor é iniciado.
Herança (Inheritance)
FROM ruby:2.2.2
Variáveis
ENV APP_HOME /myapp
RUN mkdir $APP_HOME
Inicialização
RUN bundle install
WORKDIR /myapp
Onbuild
ONBUILD RUN bundle install
# when used with another file
Comandos
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]