2019-11-17 17:49:37 -05:00
|
|
|
;; Copyright 2019 Lassi Kortela
|
|
|
|
;; SPDX-License-Identifier: ISC
|
|
|
|
|
2021-08-17 05:51:32 -04:00
|
|
|
(import (scheme base) (scheme write) (lassik dockerfile))
|
2019-11-17 17:49:37 -05:00
|
|
|
|
|
|
|
(display
|
|
|
|
(quote-dockerfile
|
|
|
|
'((from (image "debian") (as "build"))
|
|
|
|
(copy (dst "bar") (src "foo") (from "build"))
|
|
|
|
(entrypoint (exec "executable" "arg1" "arg2"))
|
|
|
|
(entrypoint (shell (cmd "executable")))
|
|
|
|
(run (shell (and (cmd "apt-get" "update")
|
|
|
|
(cmd "apt-get" "-y" "--no-install-recommends"
|
|
|
|
"install" "build-essential")
|
|
|
|
(cmd "rm" "-rf" (arg "/var/lib/apt/lists/"
|
|
|
|
(verbatim "*")))))))))
|