Sign inSign up

laughk/pelican-sitebuilder

By laughk

•Updated 9 months ago

Docker container image for building static site by pelican

Image
0

1.2K

laughk/pelican-sitebuilder repository overview

⁠docker-sitebuild-by-pelican

Docker container include pelican⁠, pelican-plugins⁠, getpelican/pelican-themes⁠

⁠use case

⁠build pelican site in localmachine

put docker-compose.yml like below to your pelican site project root directory.

version: '3'
services:
  pelican-sitebuilder:
    image: laughk/pelican-sitebuilder
    volumes:
      - .:/project-root

and execute below command.

docker-compose run pelican-sitebuilder

then, static site contents will be generated to output directory with using pelicanconf.py.

⁠use with publishconf.py

If you want use publishconf.py, update docker-compose.yml to like below.

version: '3'
services:
  pelican-sitebuilder:
    image: laughk/pelican-sitebuilder
    volumes:
      - .:/project-root
    command: builder -c publish
⁠use theme you want use

If you want use publishconf.py, update docker-compose.yml to like below.

version: '3'
services:
  pelican-sitebuilder:
    image: laughk/pelican-sitebuilder
    volumes:
      - .:/project-root
      - /path/to/pelican-theme-which-you-want:/my-theme
    command: builder -T

Tag summary

Content type

Image

Digest

Size

116.6 MB

Last updated

almost 6 years ago

docker pull laughk/pelican-sitebuilder