Docker compose "context", supported in Railway when building a Dockerfile?
macwilko
HOBBYOP

2 years ago

I have a Docker compose file I'm trying to bring to Railway, I'm noticing that one Dockerfile fails to build because it can't find the folders its trying to build:

The only difference I see to the other Dockerfiles in the compose file is it uses a context:

My Dockerfile is built using:

12 Replies

brody
EMPLOYEE

2 years ago

i think?

set the root directory to /apiserver
and then set RAILWAY_DOCKERFILE_PATH to Dockerfile.api


macwilko
HOBBYOP

2 years ago

thats encouraging 🙂 Ty brody! Dumb question, but how do I set the root directory?


brody
EMPLOYEE

2 years ago

service settings


macwilko
HOBBYOP

2 years ago

right!


brody
EMPLOYEE

2 years ago

somewhere in the source section


macwilko
HOBBYOP

2 years ago

ooof I see it


macwilko
HOBBYOP

2 years ago

easily missed that one


macwilko
HOBBYOP

2 years ago

deploying


macwilko
HOBBYOP

2 years ago

lets seeee


macwilko
HOBBYOP

2 years ago

that was it


macwilko
HOBBYOP

2 years ago

awesome


macwilko
HOBBYOP

2 years ago

<:salute:1137099685417451530>


Loading...