Setting up a nested Dockerfile in a Github project
developerryan
HOBBYOP

10 months ago

I've got a project that I'm trying to setup structured as a monorepo. This monorepo has a script that I want to run on a cron every 30 minutes.

I created a Dockerfile to set everything up nicely, but I'm not too sure how to get it working in Railway. I set a custom build command that builds the dockerfile, however, I don't believe this setup works like I expect.

Does anyone have any guidance on how I can run a Dockerfile that exists within a monorepo subdirectory?

2 Replies

developerryan
HOBBYOP

10 months ago

bf7e9a41-bba6-4338-b95a-9584f5bd76ae


developerryan
HOBBYOP

10 months ago

I do see if I move the Dockerfile to the root it changes the build step to a docker build, so maybe that's all I need 👀


Loading...