Docker ENV?
Does railway accept environment variables defined within a Dockerfile?
ENV FOO bar
And yes, my repository is private.Solution:Jump to 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
9 Replies
Project ID:
N/A
N/A
yes of course, but you should use service variables instead
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
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
this is why I suggested you use service variables
Gotcha. Thanks.
Geez, had a couple variables reversed which was causing my issue.