Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ruby:3.0
- #RUN dependencies
- # Install NodeJS LTS
- RUN sh -c "curl -sL https://deb.nodesource.com/setup_lts.x | bash -"
- # Install Yarn package
- RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- # Update packages
- RUN apt-get update -qq
- # Install packages
- RUN apt-get install apt-utils && \
- apt-get install -y build-essential && \
- apt-get install -y curl && \
- apt-get install -y libpq-dev && \
- apt-get install -y unzip && \
- apt-get install -y vim && \
- apt-get install -y wget && \
- apt-get install -y zip
- RUN apt-get install -y nodejs
- RUN apt-get install -y yarn
- RUN yarn add jquery
- RUN yarn add bootstrap
- RUN yarn add popper.js
- # Move to workspace
- RUN mkdir /rails_app
- WORKDIR /rails_app
- COPY rails_app/Gemfile /rails_app/Gemfile
- COPY rails_app/Gemfile.lock /rails_app/Gemfile.lock
- RUN bundle install
- COPY rails_app /rails_app
- EXPOSE 3000
- # Install gems 'bundler' and 'rails'
- RUN sh -c "gem install bundler && gem install rails -v 6.1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement