https://github.com/gbirke/spress-docker
Docker files for Spress, a static site builder
https://github.com/gbirke/spress-docker
dockerfile php static-site-generator
Last synced: 9 months ago
JSON representation
Docker files for Spress, a static site builder
- Host: GitHub
- URL: https://github.com/gbirke/spress-docker
- Owner: gbirke
- Created: 2017-03-18T13:59:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T10:29:43.000Z (over 9 years ago)
- Last Synced: 2025-02-02T16:56:23.295Z (over 1 year ago)
- Topics: dockerfile, php, static-site-generator
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerfile for Spress
This is a Dockerfile for running the static site generator [Spress](http://spress.yosymfony.com/).
To run a local web server with an existing site use the command
docker run -v $(pwd):/var/www -p 4000 -t --rm gbirke/spress
You can stop the web server at any time with Ctrl-C. The container will be cleaned up automatically.
To build the site without running a web server, use the default Spress parameters after the image name:
docker run -v $(pwd):/var/www -t --rm gbirke/spress site:build
Build with drafts:
docker run -v $(pwd):/var/www -t --rm gbirke/spress site:build --drafts
Build in production environment:
docker run -v $(pwd):/var/www -t --rm gbirke/spress site:build --env=prod
Build from a different directory:
docker run -v /home/gbirke/blog:/var/www -t --rm gbirke/spress site:build