Configure Docker builder working directory
reece
PROOP

2 years ago

Trying out config as code, specifying a Dockerfile path, but I need to copy assets into the container. This currently isn't working because the Docker builder is trying to build relative to root, but the Dockerfile needs to be in the same directory as the files it's copying. How does one change this?

Solved

12 Replies

reece
PROOP

2 years ago

c0e3b2af-8f03-40c2-85e3-30ac2bf30ceb


2 years ago

you can set the root directory in the service settings!


reece
PROOP

2 years ago

hmm, what if I only want it during build, and not during deploy?


2 years ago

unfortunately it would always be for both


reece
PROOP

2 years ago

even in a docker image? 🤔


reece
PROOP

2 years ago

also, looks like it can't be set from a config file <:sadblob:608312612244946967>


2 years ago

nope, it would not apply to docker images


reece
PROOP

2 years ago

ah, perfect, that should work fine then! I will open a feedback thread to request it as a config field


reece
PROOP

2 years ago

!s


2 years ago

sounds good!


reece
PROOP

2 years ago

rip cant close it myself


2 years ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...