Skip to content

Hugo in a Docker container (focused on CI build & deployment)

License

Notifications You must be signed in to change notification settings

edjeavons/docker-hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

orphans/hugo

This is a minimal Docker image for generating static sites with Hugo.

It has two purposes:

1. Site development

To run a local server during development add the following docker-compose.yml file to the root of your Hugo project.

Note: Hugo will serve draft content when run in this manner.

version: "3.1"
services:
  hugo:
    image: orphans/hugo
    ports: 
      - "1313:1313"
    volumes: 
      - ".:/hugo"

Then run docker-compose up as usual.

2. Continuous Integration

The image can be used with CI to build the static website files and Rsync them to a remote server.

(Detail to follow)

About

Hugo in a Docker container (focused on CI build & deployment)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published