Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 518 Bytes

dockerfile.md

File metadata and controls

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

参考

{: .-three-column}

继承

FROM ruby:2.2.2

变量

ENV APP_HOME /myapp
RUN mkdir $APP_HOME

初始化

RUN bundle install
WORKDIR /myapp

构建中(Onbuild)

ONBUILD RUN bundle install
# when used with another file

命令

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

参考

{: .-one-column}