3 ms·
What i've done is just mount the rails app in a volume, so it's not part of the docker image at all. This means I can run multiple rails apps using the same im
by shawabawa3 12y ago
What i've done is just mount the rails app in a volume, so it's not part of the docker image at all.
This means I can run multiple rails apps using the same image just by changing what volume to mount
- vidarh 12y agoIt's worth noting that this is also the approach that e.g. the standard nginx image takes, so if you run nginx in front of your Rails app, you can bring up nginx with a mount of the same volume. I still prefer to deploy my Ruby apps as part of any image, though. Of course you can combine the two: Build an image whose sole purpose is to package your app and export it as a volume for use by pre-made Rails/Nginx containers.