Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions content/docs/builds/dockerfiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ If your Dockerfile is in another directory, specify it like this:
RAILWAY_DOCKERFILE_PATH=/build/Dockerfile
```

The Dockerfile path only selects which Dockerfile Railway uses. It does not
change the service's Root Directory or Docker build context. If the Dockerfile
expects files relative to a subdirectory, set that subdirectory as the service's
**Root Directory** in the service settings.

### Use config as Code

You can also set your custom Dockerfile path using [config as code](/config-as-code).
Expand Down
5 changes: 5 additions & 0 deletions content/docs/config-as-code/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ Location of non-standard Dockerfile.

This field can be set to `null`.

This only selects the Dockerfile. It does not set the service's Root Directory
or change the Docker build context. If your Dockerfile is written for a
subdirectory, set the service's **Root Directory** to that subdirectory in the
service settings.

More about building from a Dockerfile [here](/builds/dockerfiles).

### Railpack version
Expand Down
Loading