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 RUN bundle install
# when used with another file
EXPOSE 5900
CMD ["bundle", "exec", "rails", "server"]
{: .-one-column}