Railway is not using service variables during Dockerfile build

2 years ago

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

34 Replies


2 years ago

after this


2 years ago

the token is valid, i double checked it


2 years ago

as test I tried to do RUN echo $RONIN_TOKEN


2 years ago

and see no value for it


2 years ago

railway stopped injected the token


2 years ago

1252939814001705000


2 years ago

yes the token is just not passed 😐


2 years ago

RUN bunx ronin login && bun install --production


2 years ago

im doing this


2 years ago

but RONIN_TOKEN is not injected


2 years ago

or rather


2 years ago

1252940317582168000


2 years ago

how can I pass variable to the dockerfile?


2 years ago

1252941243411861500


2 years ago

perhaps @Brody knows


2 years ago

for some reason docker builds just stopped working for me


2 years ago

and now token is not being injected at all


2 years ago

you answered this yourself


2 years ago

this is the answer, as shown in that screenshot

ARG VARIABLE

2 years ago

respectfully, let's try not to blame railway for everything right from the start


2 years ago

oh true


2 years ago

this worked


2 years ago

yea was not really blaming it was just an assumption as things worked


2 years ago

then suddenly stopped when i made no changes on my side I think and I remember you said there was some update being released


2 years ago

won't blame again 🙂


2 years ago

im new to railway and devops


2 years ago

mostly worked with cloudflare workers only


2 years 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


2 years ago

and railway is mucher nicer as there are no limitations


2 years ago

was trying to pick this as answer


2 years ago

and failed


2 years ago

1252999143681692000


2 years ago

users are not permitted to use that feature


Loading...