{"id":23772347,"url":"https://github.com/lbenie/docker-nogo","last_synced_at":"2026-04-13T04:51:44.750Z","repository":{"id":48000523,"uuid":"86261746","full_name":"lbenie/docker-nogo","owner":"lbenie","description":"Docker image for hugo static page generator with nodejs for dependency management and openssh to transfer file via scp/rsync (https://gohugo.io) (https://nodejs.org)","archived":false,"fork":false,"pushed_at":"2022-12-03T15:43:32.000Z","size":145,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T04:54:52.929Z","etag":null,"topics":["docker","docker-compose","hugo","nginx","nginx-proxy","nginx-server","nodejs","rsync","scp","static-page","static-pages","static-site-generator","toml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lbenie.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}},"created_at":"2017-03-26T20:12:24.000Z","updated_at":"2021-06-29T14:38:47.000Z","dependencies_parsed_at":"2023-01-23T04:46:17.302Z","dependency_job_id":null,"html_url":"https://github.com/lbenie/docker-nogo","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbenie%2Fdocker-nogo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbenie%2Fdocker-nogo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbenie%2Fdocker-nogo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbenie%2Fdocker-nogo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbenie","download_url":"https://codeload.github.com/lbenie/docker-nogo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239958311,"owners_count":19724926,"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-compose","hugo","nginx","nginx-proxy","nginx-server","nodejs","rsync","scp","static-page","static-pages","static-site-generator","toml"],"created_at":"2025-01-01T04:54:56.172Z","updated_at":"2026-04-01T22:30:14.455Z","avatar_url":"https://github.com/lbenie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lbenie/docker-nogo\n\n[![Docker Build Statu](https://img.shields.io/docker/build/lucienb/docker-nogo.svg)]()\n[![Docker Automated buil](https://img.shields.io/docker/automated/lucienb/docker-nogo.svg)]()\n[![Docker Pulls](https://img.shields.io/docker/pulls/lucienb/docker-nogo.svg)]()\n[![Docker Stars](https://img.shields.io/docker/stars/lucienb/docker-nogo.svg)]()\n\n`lbenie/docker-nogo` is a [Docker](https://www.docker.io) base image for static sites generated with [Hugo](http://gohugo.io).\n\nThanks to [publysher](https://github.com/publysher) for inspiring this image.\n\nIn contrary of his docker image, I've added [nodejs](https://nodejs.org/) to the image since I needed `npm` to build my projects dependencies with bitbucket pipelines.\nAlso it contains openssh for transfering files with scp/rsync over my production server.\n\nThe build is relatively small at ~25MB.\n\n## Prerequisites\n\nThe image is based on the following directory structure:\n```\n.\n├── Dockerfile\n├── docker-compose.yml\n├── config.toml\n├── content\n│   └── ...\n├── layouts\n│   └── ...\n└── static\n    └── ...\n```\n### Dockerfile\n\n```Docker\n  FROM lucienb/docker-nogo:latest\n```\n\n## Building your site\n\nBased on this structure, you can easily build an image for your site:\n```sh\n  docker build -t my/image .\n```\nYour site is automatically generated during this build. \n\n## Using your site\n\nUsing this docker image together with nginx for serving static data.\n\n`docker-compose.yml`\n```Docker\nhugo:\n  image: lucienb/docker-nogo:latest\n  volumes:\n    - .:/src\n    - ./output/:/output\n  environment:\n    - HUGO_REFRESH_TIME=90 # rebuilds the project every 90 seconds\n    - HUGO_THEME=mytheme\n    - HUGO_BASEURL=//localhost/\n  restart: always\nweb:\n  image: jojomi/nginx-static\n  volumes:\n    - ./output:/var/www\n  environment:\n    - VIRTUAL_HOST=localhost/\n  ports:\n    - \"1313:80\"\n  restart: always\n```\n\nIn your terminal run\n```sh\ndocker-compose up\n```\n\nand Voilà ! \n\nYou can access your web server at `http://localhost:1313` served by nginx and updated every 90 seconds (HUGO_REFRESH_TIME=90)\n\nHappy coding ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbenie%2Fdocker-nogo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbenie%2Fdocker-nogo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbenie%2Fdocker-nogo/lists"}