Dockerfiles

Use a Dockerfile to instruct Railway how to build a service.

How it works

When building a service, Railway will look for and use a Dockerfile at the root of the source directory.

Note: For the automatic Dockerfile detection to work, the Dockerfile must be named Dockerfile with a capital D, otherwise Railway will not use it by default.

Railway notifies you when it's using the Dockerfile in the build process with the following message in the logs:

==========================
Using detected Dockerfile!
==========================

Support

For more information, refer to the guide on how to use Dockerfiles.


Edit this file on GitHub