Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 527 Bytes

dockerfile.md

File metadata and controls

50 lines (36 loc) · 527 Bytes
title category layout
Dockerfile
Devops
2017/sheet

Reference

{: .-three-column}

Inheritance

FROM ruby:2.2.2

Variables

ENV APP_HOME /myapp
RUN mkdir $APP_HOME

Initialization

RUN bundle install
WORKDIR /myapp

Onbuild

ONBUILD RUN bundle install
# when used with another file

Commands

EXPOSE 5900
CMD    ["bundle", "exec", "rails", "server"]

See also

{: .-one-column}