This image provides Ruby on Rails. On the build of the image, it adds your Gemfile and Gemfile.lock to /app/, runs bundle install, and adds the application code to the /app directory.
Add the file start_services.sh to the bin directory in the application root directory. This script is executed when the container is started without a command.
Ensure your application binds to port 3000.
Set up a Dockerfile with the following contents:
FROM spartan/rails
Build the image.
…
Profit.
Content type
Image
Digest
sha256:2516f4fb7…
Size
355.2 MB
Last updated
over 10 years ago
docker pull spartan/rails