Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
melissa-hale committed Nov 2, 2023
1 parent effb076 commit b1a37a3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/docs/deploy/dockerfiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Using detected Dockerfile!

### Custom Dockerfile Path

By default, we look for a file named `Dockerfile` in the directory. If you want to use a custom filename, you have a couple of options -
By default, we look for a file named `Dockerfile` in the directory. If you want to use a custom filename, you have a couple of options - set a variable defining the path or use config as code.

#### Set a Variable

Expand All @@ -24,9 +24,15 @@ For example, if your Dockerfile was called `Dockerfile.origin`, you would specif
RAILWAY_DOCKERFILE_PATH=Dockerfile.origin
```

If your Dockerfile is in another directory, specify it like this:

```
RAILWAY_DOCKERFILE_PATH=/build/Dockerfile
```

#### Use Config as Code

Set your custom Dockerfile path using [config as code](/deploy/config-as-code#dockerfile-path).
You can also set your custom Dockerfile path using [config as code](/deploy/config-as-code#dockerfile-path).

For example, if you use a `railway.toml` file, you would specify your Dockerfile path like this:

Expand Down Expand Up @@ -57,4 +63,4 @@ ARG RAILWAY_ENVIRONMENT

### Docker Compose

Railway doesn't support docker compose at the moment.
Railway doesn't support docker compose at the moment.

0 comments on commit b1a37a3

Please sign in to comment.