Skip to content

Commit 7aa4970

Browse files
authored
Describe dockerGroupLayers and how to disable it
Fixes sbt#1341 Since 1.7.1 dockerLayerGrouping is deprecated. Rename the setting, and add the correct 'disable' statement.
1 parent ea442bc commit 7aa4970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sphinx/formats/docker.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ Environment Settings
145145
``dockerApiVersion``
146146
The docker server API version. Used to leverage new docker features while maintaining backwards compatibility.
147147

148-
``dockerLayerGrouping``
148+
``dockerGroupLayers``
149149
The function mapping files into separate layers to increase docker cache hits.
150150
Lower index means the file would be a part of an earlier layer.
151151
The main idea behind this is to COPY dependencies *.jar's first as they should change rarely.
152152
In separate command COPY the application *.jar's that should change more often.
153153
Defaults to detect whether the file name starts with ``ThisBuild / organization``.
154-
To disable layers map all files to no layer using ``dockerLayerGrouping in Docker := (_ => None)``.
154+
To disable layers map all files to no layer using ``dockerGroupLayers in Docker := PartialFunction.empty``.
155155
156156
Publishing Settings
157157
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)