Docker container image for building static site by pelican
1.2K
Docker container include pelican, pelican-plugins, getpelican/pelican-themes
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.
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
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
Content type
Image
Digest
Size
116.6 MB
Last updated
almost 6 years ago
docker pull laughk/pelican-sitebuilder