DIFF.BLOG
New
Following
Discover
Jobs
More
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up  
Dockerfile syntax
1
·
Shane Mulligan
·
Jan. 21, 2020, 11 a.m.
Summary
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...
Read full post on mullikine.github.io →
Submit
AUTHOR
RECENT POSTS FROM THE AUTHOR