R
Railway13mo ago
Prentiss

Docker ENV?

Does railway accept environment variables defined within a Dockerfile? ENV FOO bar And yes, my repository is private.
Solution:
railway won't update the service variables from the env's in your dockerfile, but they will still be available to your app when it's deployed
Jump to solution
9 Replies
Percy
Percy13mo ago
Project ID: N/A
Prentiss
Prentiss13mo ago
N/A
Brody
Brody13mo ago
yes of course, but you should use service variables instead
Prentiss
Prentiss13mo ago
Thanks for responding. Where can I verify they're being set? I'm not seeing them in my project - d09cd450-b0ba-483f-ae0c-5e329305f433.
Solution
Brody
Brody13mo ago
railway won't update the service variables from the env's in your dockerfile, but they will still be available to your app when it's deployed
Brody
Brody13mo ago
this is why I suggested you use service variables
Prentiss
Prentiss13mo ago
Gotcha. Thanks.
Prentiss
Prentiss13mo ago
Geez, had a couple variables reversed which was causing my issue.
Want results from more Discord servers?
Add your server