package obuilder-spec

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val 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.