Advertisement
arturmnt

Untitled

Mar 20th, 2022
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. FROM ruby:3.0
  2. #RUN dependencies
  3. # Install NodeJS LTS
  4. RUN sh -c "curl -sL https://deb.nodesource.com/setup_lts.x | bash -"
  5. # Install Yarn package
  6. RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
  7. echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
  8.  
  9. # Update packages
  10. RUN apt-get update -qq
  11.  
  12. # Install packages
  13. RUN apt-get install apt-utils && \
  14. apt-get install -y build-essential && \
  15. apt-get install -y curl && \
  16. apt-get install -y libpq-dev && \
  17. apt-get install -y unzip && \
  18. apt-get install -y vim && \
  19. apt-get install -y wget && \
  20. apt-get install -y zip
  21.  
  22. RUN apt-get install -y nodejs
  23. RUN apt-get install -y yarn
  24.  
  25. RUN yarn add jquery
  26. RUN yarn add bootstrap
  27. RUN yarn add popper.js
  28.  
  29. # Move to workspace
  30. RUN mkdir /rails_app
  31. WORKDIR /rails_app
  32.  
  33. COPY rails_app/Gemfile /rails_app/Gemfile
  34. COPY rails_app/Gemfile.lock /rails_app/Gemfile.lock
  35. RUN bundle install
  36. COPY rails_app /rails_app
  37. EXPOSE 3000
  38.  
  39. # Install gems 'bundler' and 'rails'
  40. RUN sh -c "gem install bundler && gem install rails -v 6.1"
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement