Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ruby:2.4.1-alpine
- RUN apk update && apk add build-base nodejs postgresql-dev git tzdata python bash imagemagick-dev
- RUN mkdir /app
- WORKDIR /app
- # install node dependencies (e.g. webpack)
- # next two steps will be cached unless either package.json or
- # yarn.lock changes
- COPY package.json yarn.lock /app/
- RUN npm install -g yarn
- RUN yarn install
- COPY Gemfile Gemfile.lock ./
- RUN gem install bundler -v 2.0.2
- #RUN bundle pack
- RUN bundle install
- COPY . .
- CMD puma -C config/puma.rb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement