Rails 5.2.0 image for developing rails apps for new developers
127
#Dockerfile #using the Alpine Linux Distro and Ruby 2.6.5 FROM ruby:2.6-alpine
#installing Node Js RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/main/ nodejs=8.9.3-r1
#installing prerequisites RUN apk update && apk upgrade && apk add ruby ruby-json ruby-io-console ruby-bundler ruby-irb ruby-bigdecimal tzdata postgresql-dev && apk add curl-dev ruby-dev build-base libffi-dev && apk add build-base libxslt-dev libxml2-dev ruby-rdoc mysql-dev sqlite-dev
#make the app directory RUN mkdir /app
WORKDIR /app
#install bundler RUN gem install bundler
#install rails RUN gem install rails -v 5.2.0
#create a new project to install required gems RUN rails new boom
#remove the project RUN rm -rf boom
#usage
Content type
Image
Digest
Size
202.9 MB
Last updated
almost 7 years ago
docker pull stingrayzboy/rails:5.2.0