Separate production build instructions for buildkit

This commit is contained in:
Ryan Williams
2023-03-29 10:14:41 -07:00
committed by GitHub
parent 452f3e5af6
commit 7029184225
+6 -6
View File
@@ -72,14 +72,14 @@ docker compose up --build
(adjust tags as needed) (adjust tags as needed)
### with [BuildKit](https://docs.docker.com/build/buildkit/)
```
DOCKER_BUILDKIT=1 docker build --tag rails-on-docker --file production.Dockerfile . --load
``` ```
# to load the built image into local docker images
docker build --tag rails-on-docker --file production.Dockerfile . --load
or ### With legacy builder (no BuildKit)
```
# to push the built image docker build --tag rails-on-docker --file production.Dockerfile .
docker build --tag rails-on-docker --file production.Dockerfile . --push
``` ```
## Deployment ## Deployment