Separate production build instructions for buildkit
This commit is contained in:
@@ -72,14 +72,14 @@ docker compose up --build
|
||||
|
||||
(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
|
||||
|
||||
# to push the built image
|
||||
docker build --tag rails-on-docker --file production.Dockerfile . --push
|
||||
### With legacy builder (no BuildKit)
|
||||
```
|
||||
docker build --tag rails-on-docker --file production.Dockerfile .
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
Reference in New Issue
Block a user