Sign inSign up

mengzyou/hugo

By mengzyou

•Updated over 3 years ago

hugo cli image

Image
0

421

mengzyou/hugo repository overview

⁠Hugo Container Image

This repo is ued to build hugo⁠ container image, which can be used to build your hugo siatic web site.

⁠Version

⁠Usage

  • Server in local
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/ .

  • BUild public static files
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/ .

Tag summary

Content type

Image

Digest

sha256:417794d61…

Size

19 MB

Last updated

over 3 years ago

docker pull mengzyou/hugo