Guest User

Untitled

a guest
Feb 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. FROM ruby:2.5-alpine
  2.  
  3. RUN apk add --update --no-cache \
  4. # build-base \
  5. nodejs \
  6. sqlite-libs \
  7. sqlite-dev \
  8. tzdata
  9.  
  10. RUN mkdir /blog
  11. WORKDIR /blog
  12.  
  13. COPY blog/Gemfile blog/Gemfile.lock ./
  14.  
  15. RUN apk --update add --virtual build-dependencies build-base && \
  16. gem install bundler && \
  17. bundle install --without development test && \
  18. apk del build-dependencies
  19.  
  20. # RUN gem install rails && bundle install
  21.  
  22. EXPOSE 3000
  23.  
  24. CMD ["bin/rails", "server"]
Add Comment
Please, Sign In to add comment