Skip to content

Minimalist Docker image based on Alpine linux for ruby app's that use PostgreSQL

Notifications You must be signed in to change notification settings

leonardocouy/docker-alpine-pg-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

A minimalist 🐬 docker image for Ruby based on latest Alpine Linux.

This image is not based on ruby:alpine. Using this image you're able to use the latest Alpine Linux version and install any ruby version.

What is this?

  • 🐳 Lightweight docker image based on top of latest Alpine Linux image;
  • 💎 Supports any Ruby version (Don't need pull other image version);
  • 📦 Ready to bundler usage;
  • 🐘 Ready to PostgreSQL usage (if you use pg gem);
  • 🔨 Ready to build gem with native extensions (like Nokogiri);
  • :neckbeard: Ready to use gem pry-debugger (contains Readline)
  • 😛 Ready to run Rails + PostgreSQL application.

Specifying a Ruby Version

By default, if you not specify a Ruby version, it will install latest ruby version

You may pass the argument RUBY_VERSION with specific Ruby version when build your Docker image (based on this image) or Docker Compose. Like:

When you build a Docker image from a Dockerfile

docker build -t "my-alpine-ruby" . --build-arg RUBY_VERSION=2.3.1

Docker-compose

version: '3'
services:
  ...
  web:
    ...
    build:
      context: .
      args:
        - RUBY_VERSION=2.3.1
    ...
  ...

Contact

Built with ❤️ by Leonardo Flores ([email protected])

About

Minimalist Docker image based on Alpine linux for ruby app's that use PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published