R
Railwayβ€’6mo ago
nikivi

Railway is not using service variables during Dockerfile build

I am getting this error because it seems that the RONIN_TOKEN is not being injected properly or something this happened after recent change to railway dockerfile: https://github.com/nikitavoloboev/drophunt/blob/main/docker/api/Dockerfile
GitHub
drophunt/docker/api/Dockerfile at main Β· nikitavoloboev/drophunt
Contribute to nikitavoloboev/drophunt development by creating an account on GitHub.
No description
Solution:
this is the answer, as shown in that screenshot
ARG VARIABLE
ARG VARIABLE
...
Jump to solution
16 Replies
Percy
Percyβ€’6mo ago
Project ID: N/A
nikivi
nikiviOPβ€’6mo ago
https://discord.com/channels/713503345364697088/1252681748614221947/1252683094490611843 after this the token is valid, i double checked it as test I tried to do RUN echo $RONIN_TOKEN and see no value for it railway stopped injected the token
nikivi
nikiviOPβ€’6mo ago
No description
nikivi
nikiviOPβ€’6mo ago
yes the token is just not passed 😐 RUN bunx ronin login && bun install --production im doing this but RONIN_TOKEN is not injected or rather
nikivi
nikiviOPβ€’6mo ago
No description
nikivi
nikiviOPβ€’6mo ago
how can I pass variable to the dockerfile?
nikivi
nikiviOPβ€’6mo ago
No description
nikivi
nikiviOPβ€’6mo ago
perhaps @Brody knows for some reason docker builds just stopped working for me and now token is not being injected at all
Brody
Brodyβ€’6mo ago
you answered this yourself
Solution
Brody
Brodyβ€’6mo ago
this is the answer, as shown in that screenshot
ARG VARIABLE
ARG VARIABLE
Brody
Brodyβ€’6mo ago
respectfully, let's try not to blame railway for everything right from the start
nikivi
nikiviOPβ€’6mo ago
oh true this worked yea was not really blaming it was just an assumption as things worked then suddenly stopped when i made no changes on my side I think and I remember you said there was some update being released won't blame again πŸ™‚ im new to railway and devops mostly worked with cloudflare workers only
Brody
Brodyβ€’6mo ago
There are definitely plenty of times where it can be railway, even though I suspected it could have been railway when your application wasn't responding and was wrong, it's challenging to differentiate sometimes so no worries
nikivi
nikiviOPβ€’6mo ago
and railway is mucher nicer as there are no limitations was trying to pick this as answer and failed
nikivi
nikiviOPβ€’6mo ago
No description
Brody
Brodyβ€’6mo ago
users are not permitted to use that feature
Want results from more Discord servers?
Add your server