Cheat Sheet per Dockerfile
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.2Variabili
ENV APP_HOME /myapp
RUN mkdir $APP_HOMEInizializzazione
RUN bundle installWORKDIR /myappOnbuild
ONBUILD RUN bundle install
# when used with another fileComandi
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]