Separate production build instructions for buildkit
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user