Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ruby:2.6.5-alpine
- ENV RACK_ENV=production
- ENV RAILS_ENV=production
- ENV APP_HOME=/app
- RUN apk --no-cache add build-base postgresql-dev tzdata && \
- gem install bundler
- RUN mkdir -p $APP_HOME
- WORKDIR $APP_HOME
- # Install gems
- COPY Gemfile* $APP_HOME/
- RUN bundle install --without development test linter security --retry=10 --jobs=$(nproc) --quiet
- # Copy the app code
- COPY . $APP_HOME
- # Expose port
- EXPOSE 80
- CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "80"]
Advertisement
Add Comment
Please, Sign In to add comment