generated from br3ndonland/template-python
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker BuildKit info to CONTRIBUTING.md
- Loading branch information
1 parent
1be1a8c
commit 5c934fb
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|