Aide-mémoire Dockerfile
Le Dockerfile fournit les instructions nécessaires pour construire un conteneur et les commandes à exécuter lors de l’exécution du conteneur.
Héritage (Inheritance)
FROM ruby:2.2.2Variables
ENV APP_HOME /myapp
RUN mkdir $APP_HOMEInitialisation
RUN bundle installWORKDIR /myappOnbuild
ONBUILD RUN bundle install
# when used with another fileCommandes
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]