{"id":17868199,"url":"https://github.com/fundor333/docker-hugo","last_synced_at":"2025-03-21T11:31:26.027Z","repository":{"id":20591195,"uuid":"95288576","full_name":"fundor333/docker-hugo","owner":"fundor333","description":"A Docker image for hugo","archived":false,"fork":false,"pushed_at":"2024-04-21T09:23:35.000Z","size":313,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"latest","last_synced_at":"2025-03-18T00:45:13.646Z","etag":null,"topics":["docker","docker-image","dockerfile","hugo"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"publysher/docker-hugo","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fundor333.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}},"created_at":"2017-06-24T09:36:02.000Z","updated_at":"2024-10-24T14:22:12.000Z","dependencies_parsed_at":"2023-11-13T11:25:33.928Z","dependency_job_id":"20781a83-53d2-4107-9f41-63e795ede403","html_url":"https://github.com/fundor333/docker-hugo","commit_stats":null,"previous_names":[],"tags_count":290,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundor333%2Fdocker-hugo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundor333%2Fdocker-hugo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundor333%2Fdocker-hugo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fundor333%2Fdocker-hugo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fundor333","download_url":"https://codeload.github.com/fundor333/docker-hugo/tar.gz/refs/heads/latest","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244790727,"owners_count":20510796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-image","dockerfile","hugo"],"created_at":"2024-10-28T09:57:12.935Z","updated_at":"2025-03-21T11:31:25.700Z","avatar_url":"https://github.com/fundor333.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fundor333/hugo\n\n[![license](https://img.shields.io/github/license/fundor333/docker-hugo.svg)]()\n\n![Docker Stars](https://img.shields.io/docker/stars/fundor333/hugo.svg)\n![Docker Pulls](https://img.shields.io/docker/pulls/fundor333/hugo.svg)\n![Docker Automated build](https://img.shields.io/docker/automated/fundor333/hugo.svg)\n[![](https://images.microbadger.com/badges/image/fundor333/hugo.svg)](https://microbadger.com/images/fundor333/hugo \"Get your own image badge on microbadger.com\")\n\n`fundor333/hugo` is a [Docker](https://www.docker.io) base image for static sites generated with [Hugo](http://gohugo.io) fork from `publysher/hugo`.\n\nImages derived from this image can either run as a stand-alone server, or function as a volume image for your web server.\n\nFor my personal use I make smaller the image of _publysher_ because I use it in my automation service and I want a more fast pipeline.\n\n## Prerequisites\n\nThe image is based on the following directory structure:\n\n```txt\n .\n ├── Dockerfile\n └── site\n     ├── config.toml\n     ├── content\n     │   └── ...\n     ├── layouts\n     │   └── ...\n     └── static\n  └── ...\n```\n\nIn other words, your Hugo site resides in the `site` directory, and you have a simple Dockerfile:\n\n```dockerfile\nFROM fundor333/hugo\n```\n\n## Building your site\n\nBased on this structure, you can easily build an image for your site:\n\n```sh\ndocker build -t my/image .\n```\n\nYour site is automatically generated during this build.\n\n## Using your site\n\nThere are two options for using the image you generated:\n\n- as a stand-alone image\n- as a volume image for your webserver\n\nUsing your image as a stand-alone image is the easiest:\n\n```sh\ndocker run -p 1313:1313 my/image\n```\n\nThis will automatically start `hugo server`, and your blog is now available on \u003chttp://localhost:1313\u003e.\n\nIf you are using `boot2docker`, you need to adjust the base URL:\n\n```sh\ndocker run -p 1313:1313 -e HUGO_BASE_URL=http://YOUR_DOCKER_IP:1313 my/image\n```\n\nThe image is also suitable for use as a volume image for a web server, such as [nginx](https://registry.hub.docker.com/_/nginx/)\n\n```sh\ndocker run -d -v /usr/share/nginx/html --name site-data my/image\ndocker run -d --volumes-from site-data --name site-server -p 80:80 nginx\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffundor333%2Fdocker-hugo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffundor333%2Fdocker-hugo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffundor333%2Fdocker-hugo/lists"}