{"id":21405876,"url":"https://github.com/anamba/docker-rails","last_synced_at":"2026-01-20T20:02:45.719Z","repository":{"id":144807237,"uuid":"160746397","full_name":"anamba/docker-rails","owner":"anamba","description":"Docker image for Rails development","archived":false,"fork":false,"pushed_at":"2024-06-22T03:32:08.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T06:43:57.260Z","etag":null,"topics":["docker","docker-image","passenger","passenger-ruby","rails","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anamba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-06T23:45:05.000Z","updated_at":"2023-08-26T17:29:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"e359aa7c-08fe-48c2-8618-741f70abe9f1","html_url":"https://github.com/anamba/docker-rails","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/anamba/docker-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anamba%2Fdocker-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anamba%2Fdocker-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anamba%2Fdocker-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anamba%2Fdocker-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anamba","download_url":"https://codeload.github.com/anamba/docker-rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anamba%2Fdocker-rails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28612157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","passenger","passenger-ruby","rails","ruby","ruby-on-rails"],"created_at":"2024-11-22T16:28:49.075Z","updated_at":"2026-01-20T20:02:45.690Z","avatar_url":"https://github.com/anamba.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-rails - Docker image for Rails development\n\n[![Version](https://img.shields.io/github/tag/anamba/docker-rails.svg?maxAge=360)](https://github.com/anamba/docker-rails/tags)\n[![License](https://img.shields.io/github/license/anamba/docker-rails.svg)](https://github.com/anamba/docker-rails/blob/master/LICENSE)\n\nDocker Hub: [anamba/rails-dev](https://hub.docker.com/r/anamba/rails-dev/)\n\nBased on Phusion's excellent, developer-friendly [passenger-docker](https://github.com/phusion/passenger-docker) image (based on 20.04 LTS aka Focal). Includes fullstaq ruby, which offers improved performance and reduced memory usage.\n\nPrimary use cases:\n\n* CI (e.g. Bitbucket Pipelines)\n* Local development, VS Code Dev Containers\n\n## Contents\n\nIncludes:\n\n* MRI Ruby 3.2.2 + Rubygems 3.5.6\n* MRI Ruby 3.1.4 + Rubygems 3.5.6\n* MRI Ruby 3.0.6 + Rubygems 3.5.6\n* MRI Ruby 2.7.8 + Rubygems 3.4.22\n* Fullstaq Ruby 3.2.2\n* Fullstaq Ruby 3.1.4\n* Fullstaq Ruby 3.0.6\n* Fullstaq Ruby 2.7.8\n* Passenger 6.0.20\n* Node 18 + yarn (if you need Node 16, use the latest 1.4 version)\n* rvm stable\n\nWorking dir is `/home/app/myapp` (user is `app`).\n\n## Versioning\n\nVersioning originally followed passenger-docker, but no longer.\n\n1.5.3: Rebuild\n1.5.2: Rebuild\n1.5.1: Rebuild\n1.5: Added Ruby 3.2, removed 2.6; Node 16 -\u003e 18\n1.4.1: Added Ruby 3.2\n1.4: Added Ruby 3.1, removed 2.5\n1.3: Added Ruby 3.0, removed 2.4; Node 14 -\u003e 16\n1.2: Bionic -\u003e Focal; Node 12 -\u003e 14\n1.1: Added Ruby 2.7, removed 2.3; includes latest bundler out of the box\n1.0: Original release\n\n## How to use\n\nAdd to nginx vhost steps to Dockerfile (optional):\n```\nRUN rm -f /etc/nginx/sites-enabled/default\nCOPY /docker/conf/nginx-vhost.conf.template /etc/nginx/\n```\n\nExample `docker-compose.yml`:\n```yaml\nversion: '3'\n\nservices:\n  web:\n    image: anamba/rails-dev:1.5\n    volumes:\n      - ./:/home/app/myapp\n      - /home/app/myapp/log                        # you probably want to keep log and tmp in volumes\n      - /home/app/myapp/tmp                        # (especially if your working copy is in Dropbox, etc.)\n      - gems:/usr/local/rvm/gems                   # if you want to keep a single gem cache\n  db:\n    image: mysql:8.0\n    volumes:\n      - /var/lib/mysql\n\n  redis:\n    image: redis:6.0\n\nvolumes:\n  gems:\n    external: true\n```\n\nFrom there, you can run `docker-compose up` to start the containers, then, in a separate terminal:\n```bash\ndocker-compose exec -u app web bash -l  # user login shell\ndocker-compose exec web bash -l         # root login shell\n```\n\nYou'll want to create aliases or simple shell scripts to save yourself some typing.\n\n## Development\n\n(notes for myself)\n\n```bash\ndocker build --no-cache -t anamba/rails-dev:latest .\n\n# optional: test and make sure everything is installed as expected\ndocker run -it anamba/rails-dev:latest bash -l\n\ndocker tag anamba/rails-dev:latest anamba/rails-dev:1.5.3\ndocker tag anamba/rails-dev:latest anamba/rails-dev:1.5\ndocker push anamba/rails-dev:latest\n\ndocker push anamba/rails-dev:1.5.3\ndocker push anamba/rails-dev:1.5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanamba%2Fdocker-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanamba%2Fdocker-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanamba%2Fdocker-rails/lists"}