Expose environment variables on build
I'm building my Rust project on Railway using a custom Dockerfile. My build requires
DATABASE_URL
to be set during the build stage since it checks queries at compile-time.
How do I expose my environment variables when my app is building?5 Replies
Project ID:
8faf68d3-92c6-4d93-b6ac-fd5e63e66780
You might find these helpful:
- Dockerfile working on local machine but not Railway
- Invalid environment variables unless ENV included in Dockerfile
⚠️ experimental feature
8faf68d3-92c6-4d93-b6ac-fd5e63e66780
add
to ur dockerfil
got it, thank you