Home Explore Blog CI



docker

7th chunk of `content/manuals/build/buildkit/dockerfile-release-notes.md`
d91c48ac2c8b9027a28234f8b30bb4cd5c730146b0cce5470000000100000a18
  allow copying files with increased cache efficiency and rebase images without
  requiring them to be rebuilt. `--link` copies files to a separate layer and
  then uses new LLB MergeOp implementation to chain independent layers together
- [Heredocs](/reference/dockerfile.md#here-documents) support have
  been promoted from labs channel to stable. This feature allows writing
  multiline inline scripts and files
- Additional [named build contexts](/reference/cli/docker/buildx/build.md#build-context)
  can be passed to build to add or overwrite a stage or an image inside the
  build. A source for the context can be a local source, image, Git, or HTTP URL
- [`BUILDKIT_SANDBOX_HOSTNAME` build-arg](/reference/dockerfile.md#buildkit-built-in-build-args)
  can be used to set the default hostname for the `RUN` steps

### Bug fixes and enhancements

- When using a cross-compilation stage, the target platform for a step is now
  seen on progress output
- Fix some cases where Heredocs incorrectly removed quotes from content

## 1.3.1

{{< release-date date="2021-10-04" >}}

### Bug fixes and enhancements

- Fix parsing "required" mount key without a value

## 1.3.0 (labs)

{{< release-date date="2021-07-16" >}}

{{% include "dockerfile-labs-channel.md" %}}

### New

- `RUN` and `COPY` commands now support [Here-document syntax](/reference/dockerfile.md#here-documents)
  allowing writing multiline inline scripts and files

## 1.3.0

{{< release-date date="2021-07-16" >}}

### New

- `RUN` command allows [`--network` flag](/reference/dockerfile.md#run---network)
  for requesting a specific type of network conditions. `--network=host`
  requires allowing `network.host` entitlement. This feature was previously
  only available on labs channel

### Bug fixes and enhancements

- `ADD` command with a remote URL input now correctly handles the `--chmod` flag
- Values for [`RUN --mount` flag](/reference/dockerfile.md#run---mount)
  now support variable expansion, except for the `from` field
- Allow [`BUILDKIT_MULTI_PLATFORM` build arg](/reference/dockerfile.md#buildkit-built-in-build-args)
  to force always creating multi-platform image, even if only contains single
  platform

## 1.2.1 (labs)

{{< release-date date="2020-12-12" >}}

{{% include "dockerfile-labs-channel.md" %}}

### Bug fixes and enhancements

- `RUN` command allows [`--network` flag](/reference/dockerfile.md#run---network)
  for requesting a specific type of network conditions. `--network=host`
  requires allowing `network.host` entitlement

## 1.2.1

{{< release-date date="2020-12-12" >}}

Title: Dockerfile Release Notes (Versions 1.3.1 to 1.2.1)
Summary
This section summarizes Dockerfile release notes from version 1.3.1 to 1.2.1. Version 1.4.0 introduces `COPY --link` and `ADD --link`, and promotes Heredocs support to stable, along with additional named build contexts and `BUILDKIT_SANDBOX_HOSTNAME` build-arg. Bug fixes include improvements to cross-compilation output and Heredocs handling. Version 1.3.1 addresses parsing issues with the 'required' mount key. Version 1.3.0 introduces Here-document syntax for `RUN` and `COPY` commands and promotes the `--network` flag for the `RUN` command to stable. Further enhancements in version 1.3.0 include correct handling of the `--chmod` flag with remote URLs for `ADD` and variable expansion support for `RUN --mount`, along with `BUILDKIT_MULTI_PLATFORM` build arg. Version 1.2.1 (labs) introduces the `--network` flag for the `RUN` command.