Dockerfile - ARG

tylerburrPRO

a year ago

I'm attempting to pass a Docker ARG to a .yml file. It functions properly when I use sed -i but in Railway build logs, it's displaying the ARG data. I've attempted to redirect the output to &>/dev/null 2>&1, but it still appears in the build logs. Does anyone know a method to include the ARG in the .yml file without exposing it in the logs?

0 Replies

tylerburrPRO

a year ago

NA


tylerburrPRO

a year ago

I've defined an ARG in my Dockerfile, and echoing the output confirms its functionality. However, when I attempt to use that variable in my web.yml file using ${}, it doesn't work. I found that using sed -i within a RUN command allows the password to pass successfully. The problem arises when inspecting the build logs, as the echo in my **sed -i **command is visible there.


Dockerfile - ARG - Railway Help Station