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
Percy8mo ago
Project ID: N/A
Prentiss
Prentiss8mo ago
N/A
Brody
Brody8mo ago
yes of course, but you should use service variables instead
Prentiss
Prentiss8mo 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
Brody8mo 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
Brody8mo ago
this is why I suggested you use service variables
Prentiss
Prentiss8mo ago
Gotcha. Thanks.
Prentiss
Prentiss8mo ago
Geez, had a couple variables reversed which was causing my issue.