You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The COPY and opam pin strategy for depext calculation leads to a large number of layers in the resulting Dockerfile. There is a limit (127) of these in the engine, which leads to build failures.
I think we need a more efficient (but still cache-friendly) way to do the opam pin / depext dance that doesn't add a lot of layers. Some options:
copy all the opam files into a single directory and then pin them all there. This would let it work in a single COPY command.
we could create a new layer for all the opam pins, and subsequently roll that back.
I suspect the first option is best...
The text was updated successfully, but these errors were encountered:
If is a local tar archive in a recognized compression format (identity, gzip, bzip2 or xz) then it is unpacked as a directory. Resources from remote URLs are not decompressed. When a directory is copied or unpacked, it has the same behavior as tar -x, the result is the union of:
The
COPY
andopam pin
strategy for depext calculation leads to a large number of layers in the resulting Dockerfile. There is a limit (127) of these in the engine, which leads to build failures.I think we need a more efficient (but still cache-friendly) way to do the opam pin / depext dance that doesn't add a lot of layers. Some options:
I suspect the first option is best...
The text was updated successfully, but these errors were encountered: