Skip to content

mocaberos/rails-docker-image

Repository files navigation

Rails docker image

Build Status

Rails 6 or 7 (puma)用dockerイメージ

使い方

# Public
FROM mocaberos/rails-docker-image:bullseye-latest
FROM mocaberos/rails-docker-image:bullseye-slim-latest
FROM mocaberos/rails-docker-image:buster-latest
FROM mocaberos/rails-docker-image:buster-slim-latest
# Private
FROM 085041388644.dkr.ecr.ap-northeast-1.amazonaws.com/rails-docker-image:bullseye-latest
FROM 085041388644.dkr.ecr.ap-northeast-1.amazonaws.com/rails-docker-image:bullseye-slim-latest
FROM 085041388644.dkr.ecr.ap-northeast-1.amazonaws.com/rails-docker-image:buster-latest
FROM 085041388644.dkr.ecr.ap-northeast-1.amazonaws.com/rails-docker-image:buster-slim-latest

RailsアプリをDockerコンテナ内の/appディレクトリにコピーして、 pumaはbind 'unix:/var/run/puma.sock'を設定すると、使用可能。

詳細

  • Debian 10 (buster) or 11(bullseye)
  • Nginx
  • Rails 6 or 7
  • Ruby 3.0.2
  • Node.js 14.18.1
  • jemalloc (Rubyのアロケーションライブラリをよりパフォーマンスの良いjemallocに変更)

Nginxの設定ファイルはdocker/nginx内のものをコピーして使用できます。 railsアプリが/appに配置される前提で、/app/public/をドキュメントルートに設定しており。 デフォルトで1190ポートをリッスンして、unix:/var/run/puma.sockにリバースプロキシで送信します。

About

Rails6(puma)用dockerイメージ

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages