{"id":29034277,"url":"https://github.com/pmudra/docker-hugo","last_synced_at":"2026-04-16T14:02:16.154Z","repository":{"id":81174425,"uuid":"97959063","full_name":"PMudra/docker-hugo","owner":"PMudra","description":"Extremely Lightweight Docker Images for the Static Site Generator Hugo","archived":false,"fork":false,"pushed_at":"2018-02-08T21:54:03.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T11:07:12.410Z","etag":null,"topics":["alpine-image","automated-build","continuous-integration","docker-hugo","docker-image","dockerfile","hugo","hugo-cli","hugo-site","static-site"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PMudra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-21T14:55:01.000Z","updated_at":"2018-09-17T08:05:22.000Z","dependencies_parsed_at":"2023-03-13T20:09:12.301Z","dependency_job_id":null,"html_url":"https://github.com/PMudra/docker-hugo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PMudra/docker-hugo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fdocker-hugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fdocker-hugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fdocker-hugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fdocker-hugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PMudra","download_url":"https://codeload.github.com/PMudra/docker-hugo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PMudra%2Fdocker-hugo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31888935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine-image","automated-build","continuous-integration","docker-hugo","docker-image","dockerfile","hugo","hugo-cli","hugo-site","static-site"],"created_at":"2025-06-26T11:07:07.113Z","updated_at":"2026-04-16T14:02:16.149Z","avatar_url":"https://github.com/PMudra.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hugo Docker Images\n\n[![Docker Build Status](https://img.shields.io/docker/build/pmudra/hugo.svg)](https://hub.docker.com/r/pmudra/hugo/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/pmudra/hugo.svg)](https://hub.docker.com/r/pmudra/hugo/)\n[![Docker Stars](https://img.shields.io/docker/stars/pmudra/hugo.svg)](https://hub.docker.com/r/pmudra/hugo/)\n\nExtremely lightweight (\u003c 10 MB) [Docker](https://www.docker.com/) images for the static site generator [Hugo](https://gohugo.io/).\n\n## How to use this image\n\nBasically, the Hugo Docker image is used the same way as the Hugo CLI itself.\nSee the official [basic usage](https://gohugo.io/getting-started/usage/) page for a more detailed explanation.\n\n### Get help and version\n\n```\n$ docker run --rm pmudra/hugo hugo help\n$ docker run --rm pmudra/hugo hugo version\n```\n\nCommand/Option   | Description\n-----------------|------------\n`docker run`     | Run a command in a new container\n`--rm`           | Automatically remove the container when it exits\n`pmudra/hugo`    | Name of the Hugo Docker image\n`hugo`           | Execute Hugo CLI\n`help`/`version` | Hugo CLI commands (i.e. same as running `hugo help`/`hugo version`)\n\n### Create a new site\n\n```\n$ docker run --rm --mount type=bind,source=\"$(pwd)\",target=/usr/src/myapp -w /usr/src/myapp pmudra/hugo hugo new site quickstart\n```\n\nCommand/Option          | Description\n------------------------|------------\n`--mount type=bind,`    | Attach a filesystem mount to the container\n`source=\"$(pwd)\",`      | Path to the directory on the host i.e. the path of the current working directory\n`target=/usr/src/myapp` | Path where the directory will be mounted in the container\n`-w /usr/src/myapp`     | Working directory inside the container\n`new site quickstart`   | Create a new Hugo site named *quickstart*\n\nThe above will create a new Hugo site in a folder named *quickstart*. \n\n### Serve content\n\n```\n$ cd quickstart\n$ docker run -it --rm --mount type=bind,source=\"$(pwd)\",target=/usr/src/myapp -w /usr/src/myapp -p 1313:1313 pmudra/hugo hugo server --bind=0.0.0.0\n```\n\nCommand/Option   | Description\n-----------------|------------\n`-it`            | Keep STDIN open even if not attached and allocate a pseudo-TTY\n`-p 1313:1313`   | Publish the container's port to the host\n`--bind=0.0.0.0` | Bind to all interfaces (this enables the docker host to access the site)\n\nThe above builds and serves the site.\nWeb Server is available at [http://localhost:1313/](http://localhost:1313/).\n\nRemember to [add a theme](https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme) before expecting to see anything else than a blank page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmudra%2Fdocker-hugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmudra%2Fdocker-hugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmudra%2Fdocker-hugo/lists"}