2 months ago
If I import my application from GitHub, is it possible to make the system OS Ubuntu and use env files instead of the suggested variables?
3 Replies
2 months ago
You cannot directly choose the OS, but you can use a Dockerfile with an Ubuntu base image (e.g., FROM ubuntu:22.04) to control the underlying system. For environment variables, you can paste the contents of your .env file directly into the RAW Editor on the service's Variables tab, which will import all the values as Railway variables that are injected at runtime.
Status changed to Awaiting User Response Railway • about 2 months ago
Railway
You cannot directly choose the OS, but you can use a Dockerfile with an Ubuntu base image (e.g., `FROM ubuntu:22.04`) to control the underlying system. For environment variables, you can paste the contents of your `.env` file directly into the [RAW Editor](https://docs.railway.com/variables) on the service's Variables tab, which will import all the values as Railway variables that are injected at runtime.
2 months ago
а как использовать dockerfile в моем проекте?
Status changed to Awaiting Railway Response Railway • about 2 months ago
2 months ago
We can only provide support in English, so please reply in English going forward. To use a Dockerfile in your project, add a file named Dockerfile (with a capital D) to the root of your GitHub repository, and Railway will automatically detect and use it during the build process. You can learn more in our Dockerfiles documentation.
Status changed to Awaiting User Response Railway • about 2 months ago
a month ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 1 month ago