Dockerfile syntax

1 · Shane Mulligan · Jan. 21, 2020, 11 a.m.
Original article https://devhints.io/dockerfile Inheritance 1 FROMruby:2.2.2 Variables 1 2 3 4 ENV APP_HOME /myappRUN mkdir $APP_HOMEARG APP_HOME=""RUN mkdir $APP_HOME Initialization 1 2 3 4 5 6 RUN bundle installWORKDIR/myappVOLUME ["/data"]# Specification for mount pointADD file.xyz /file.xyzCOPY --chown=user:group host_file.xyz /path/container_file.xyz Onbuild 1 2 ONBUILD RUN bundle install# when used with another file Commands 1 2 EXPOSE5900CMD ["bundle", "exec", "rails", "serv...