@ -15,7 +15,7 @@ After Dark ships with the ability to build Hugo from tagged-version source. Supp
To use install Docker then run the following command:
cd after-dark/docker/hugo && docker build --rm .
cd after-dark/docker/hugo && docker build .
Build container uses Alpine and includes `musl-dev` for high-performance. Update the `HUGO_VERSION` to get a specific Hugo release built. Upon successful build extract the resulting `hugo` binary out of the scratch container like:
@ -31,7 +31,7 @@ Where `f2b785583ce8` is the scratch container's Image ID and `/usr/local/bin` is
For builds without Sass support enabled turn off `CGO_ENABLED`, pass in a phony value to `BUILD_TAGS`, create another build and give it a docker tag:
docker tag $(docker images -q | head -n 1) gohugoio/hugo:v0.57.0
docker tag $(docker images -q | head -n 1) gohugoio/hugo:v0.60.0
It's recommended at least 2GB of storage space is available when running builds. The resulting binary inside the scratch container is less than 50MB.