Sign inSign up

stingrayzboy/rails

By stingrayzboy

•Updated almost 7 years ago

Rails 5.2.0 image for developing rails apps for new developers

Image
0

127

stingrayzboy/rails repository overview

#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

⁠docker container run -it -p 80:3000 -v $(pwd):/app stringrayzboy/rails:5.2.0 sh

Tag summary

Content type

Image

Digest

Size

202.9 MB

Last updated

almost 7 years ago

docker pull stingrayzboy/rails:5.2.0