package obuilder-spec

  1. Overview
  2. Docs
Build specification format

Install

dune-project
 Dependency

Authors

Maintainers

Sources

obuilder-0.5.tbz
sha256=3d317a28079ca83d372675732fe04b5ed865efad1f3439e97fe20d96fa72bae5
sha512=52fa409cfe9c5b90841802004de7d4fbf7d0dc81900e0ad871a85a67bde7e3572a3cc9e13facc3d0933ed61eefd9d84e83ff613d6515c550978ad55ab03b14d2

doc/obuilder-spec/Obuilder_spec/Docker/index.html

Module Obuilder_spec.DockerSource

Sourceval dockerfile_of_spec : buildkit:bool -> os:[ `Unix | `Windows ] -> Obuilder_spec__.Spec.t -> string

dockerfile_of_spec ~buildkit ~os x produces a Dockerfile that aims to be equivalent to x.

However, note that:

  • In "(copy (excludes …) …)" the excludes part is ignored. You will need to ensure you have a suitable ".dockerignore" file.
  • The conversion is not robust against malicious input, as the escaping rules are unclear.
  • parameter buildkit

    If true, the extended BuildKit syntax is used to support caches. If false, caches are ignored. BuildKit syntax isn't supported on Windows.

  • parameter os

    Use UNIX or Windows syntax and idiosyncrasies.