Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 464 Bytes

dockerfile.md

File metadata and controls

44 lines (31 loc) · 464 Bytes
title category
Dockerfile
Devops

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"]

Reference