Skip to content

Commit db3d70e

Browse files
committed
changelog
1 parent 4d9292f commit db3d70e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docker/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This docker file is suitable for building dbt Docker images locally or using wit
66
This Dockerfile can create images for the following target: `dbt-postgres`
77

88
In order to build a new image, run the following docker command.
9-
```
9+
```shell
1010
docker build --tag <your_image_name> --target dbt-postgres <path/to/dockerfile>
1111
```
1212
---
@@ -15,7 +15,7 @@ docker build --tag <your_image_name> --target dbt-postgres <path/to/dockerfile>
1515
---
1616

1717
By default the images will be populated with the most recent release of `dbt-postgres`. If you need to use a different version you can specify it by git ref using the `--build-arg` flag:
18-
```
18+
```shell
1919
docker build --tag <your_image_name> \
2020
--target dbt-postgres \
2121
--build-arg dbt_postgres_ref=<git_ref> \
@@ -24,13 +24,13 @@ docker build --tag <your_image_name> \
2424

2525
### Examples:
2626
To build an image named "my-dbt" that supports Snowflake using the latest releases:
27-
```
27+
```shell
2828
cd dbt-core/docker
2929
docker build --tag my-dbt --target dbt-postgres .
3030
```
3131

3232
To build an image named "my-other-dbt" that supports Snowflake using the adapter version 1.0.0b1:
33-
```
33+
```shell
3434
cd dbt-core/docker
3535
docker build \
3636
--tag my-other-dbt \
@@ -43,7 +43,7 @@ docker build \
4343
There are a few special cases worth noting:
4444

4545
* If you need to build against another architecture (linux/arm64 in this example) you can override the `build_for` build arg:
46-
```
46+
```shell
4747
docker build --tag my_dbt \
4848
--target dbt-postgres \
4949
--build-arg build_for=linux/arm64 \
@@ -54,7 +54,7 @@ Supported architectures can be found in the python docker [dockerhub page](https
5454

5555
## Running an image in a container:
5656
The `ENTRYPOINT` for this Dockerfile is the command `dbt` so you can bind-mount your project to `/usr/app` and use dbt as normal:
57-
```
57+
```shell
5858
docker run \
5959
--network=host \
6060
--mount type=bind,source=path/to/project,target=/usr/app \

0 commit comments

Comments
 (0)