stackage/automated/dockerfiles/README.md
2020-02-14 11:29:11 +08:00

37 lines
1.0 KiB
Markdown

dockerfiles/stack-build
=======================
Build [fpco/stack-build](https://hub.docker.com/r/fpco/stack-build/) Docker
images. This script and its Dockerfiles are used for building images for LTS >=
8.0.
Usage
-----
./build.sh [--push] [--dry-run] [--small] lts-X.Y|lts-X|lts]"
Options
-------
`--help`: show this help
`--push`: push the image after building/tagging it
`--dry-run`: print the important commands that will be run, but don't actually
run them
`--small`: build the small variant of the image
Argument
---------
If you specify and exact LTS version, that image will be built. If you only
specify the major version, then an image for the latest minor version for that
major version will be built. If you specify 'lts', an image for the latest LTS
snapshot is built.
This searches for a Dockerfile for the selected snapshot in
`lts-X.Y/Dockerfile`, and if one isn't found reuses the same image as built the
most recent `lts-X.Y/Dockerfile` found for earlier minor versions of the same
major version.