Configure Docker builder working directory
reece
PROOP

a year 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

a year ago

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


a year ago

you can set the root directory in the service settings!


reece
PROOP

a year ago

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


a year ago

unfortunately it would always be for both


reece
PROOP

a year ago

even in a docker image? 🤔


reece
PROOP

a year ago

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


a year ago

nope, it would not apply to docker images


reece
PROOP

a year ago

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


reece
PROOP

a year ago

!s


a year ago

sounds good!


reece
PROOP

a year ago

rip cant close it myself


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...