Dockerfile - ARG

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?
2 Replies
Percy
Percy9mo ago
Project ID: N/A
RealTylerBurr
RealTylerBurrOP9mo ago
NA 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.
Want results from more Discord servers?
Add your server