I forget how to do this a lot. This is me memoizing it for myself. This is not optimal but will get you off ground zero.
.dockerignore because the container image (Linux) is probably different from the host image (Mac). By ignoring this we avoid having messed up node dependancies by platform.
Then create a
entrypoint.sh which is just a bash script to execute and start the
rails server process: