This repo is ued to build hugo container image, which can be used to build your hugo siatic web site.
cd <your hugo project dir>
docker container run --rm -t -p 1313:1313 -v $(pwd):/home/hugo/app mengzyou/hugo
Browser to http://localhost:1313/ .
FROM mengzyou/hugo AS builder
COPY . /home/hugo/app
RUN hugo
FROM mengzyou/easyhttpd
COPY --from=builder --chown=http:www /app/public/ /srv/www
docker build -t hugosite .
docker container run --rm -d -p 8008:8008 hugosite
Browser to http://localhost:8008/ .
Content type
Image
Digest
sha256:417794d61…
Size
19 MB
Last updated
over 3 years ago
docker pull mengzyou/hugo