Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. FROM ruby:2.4.1-alpine
  2.  
  3. RUN apk update && apk add build-base nodejs postgresql-dev git tzdata python bash imagemagick-dev
  4.  
  5. RUN mkdir /app
  6. WORKDIR /app
  7.  
  8. # install node dependencies (e.g. webpack)
  9. # next two steps will be cached unless either package.json or
  10. # yarn.lock changes
  11. COPY package.json yarn.lock /app/
  12. RUN npm install -g yarn
  13. RUN yarn install
  14.  
  15. COPY Gemfile Gemfile.lock ./
  16. RUN gem install bundler -v 2.0.2
  17. #RUN bundle pack
  18. RUN bundle install
  19.  
  20. COPY . .
  21.  
  22.  
  23.  
  24. CMD puma -C config/puma.rb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement