If you enjoy this article you may be interested in the book I am working on called Building and Deploying Crypto Trading Bots. You can find more info about it here.
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: