Il Dockerfile fornisce le istruzioni necessarie per costruire un container e i comandi da eseguire durante l'esecuzione del container.
Ereditarietà (Inheritance)
FROM ruby:2.2.2
Variabili
ENV APP_HOME /myapp
RUN mkdir $APP_HOME
Inizializzazione
RUN bundle install
WORKDIR /myapp
Onbuild
ONBUILD RUN bundle install
# when used with another file
Comandi
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]