Skip to content

Commit

Permalink
Add Docker BuildKit info to CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed Jun 11, 2022
1 parent 1be1a8c commit 5c934fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,17 @@ docker cp [container_name]:/path/to/file destination.file

### Building development images

Note that Docker builds use BuildKit. See the [BuildKit docs](https://github.com/moby/buildkit/blob/HEAD/frontend/dockerfile/docs/syntax.md) and [Docker docs](https://docs.docker.com/develop/develop-images/build_enhancements/).

To build the Docker images for each stage:

```sh
git clone [email protected]:br3ndonland/inboard.git
cd inboard
export DOCKER_BUILDKIT=1
docker build . --rm --target base -t localhost/br3ndonland/inboard:base && \
docker build . --rm --target fastapi -t localhost/br3ndonland/inboard:fastapi && \
docker build . --rm --target starlette -t localhost/br3ndonland/inboard:starlette
Expand Down

0 comments on commit 5c934fb

Please sign in to comment.