Guest User

Untitled

a guest
Mar 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. FROM ruby:2.5-alpine3.7
  2.  
  3. RUN apk add --update --no-cache \
  4. build-base \
  5. nodejs \
  6. tzdata \
  7. libxml2-dev \
  8. libxslt-dev \
  9. bash \
  10. postgresql-dev \
  11. mysql-dev
  12.  
  13. ARG rails_env=development
  14. ENV APP_ROOT /app
  15.  
  16. RUN mkdir $APP_ROOT
  17. WORKDIR $APP_ROOT
  18.  
  19. RUN bundle config --global frozen 1
  20.  
  21. COPY Gemfile $APP_ROOT/Gemfile
  22. COPY Gemfile.lock $APP_ROOT/Gemfile.lock
  23.  
  24. RUN RAILS_ENV=$rails_env_variable bundle install --path /bundle
  25.  
  26. COPY . $APP_ROOT
Add Comment
Please, Sign In to add comment