https://github.com/t-matsuo/docker-pico
Dockerfile to build Pico CMS
https://github.com/t-matsuo/docker-pico
Last synced: 3 months ago
JSON representation
Dockerfile to build Pico CMS
- Host: GitHub
- URL: https://github.com/t-matsuo/docker-pico
- Owner: t-matsuo
- Created: 2017-10-03T15:09:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T13:26:58.000Z (about 4 years ago)
- Last Synced: 2025-01-28T13:49:27.245Z (8 months ago)
- Language: Dockerfile
- Size: 402 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-pico
Dockerfile to build [Pico CMS](https://github.com/picocms/Pico) container image.
## Building image
```
# docker build -t mypico .
```or use this image
`ghcr.io/t-matsuo/docker-pico/pico`
## Usage
Run container with default config.
```
# docker run -d -p 80:80 -v /path/to/your/content:/var/www/html/content --name pico ghcr.io/t-matsuo/docker-pico/pico
```Run container with custom config. Template file is [here](https://github.com/picocms/Pico/blob/v2.1.4/config/config.yml.template).
```
# docker run -d -p 80:80 -v /path/to/your/content:/var/www/html/content -v /path/to/your/config.yml:/var/www/html/config/config.yml --name pico ghcr.io/t-matsuo/docker-pico/pico
```Change [theme](https://picocms.org/themes/).
(ex) using [simpleTwo](https://github.com/sonst-was/simpleTwo) theme
```
# mkdir themes
# git clone https://github.com/sonst-was/simpleTwo.git
# mv simpleTwo/simpletwo themes/
# docker run -d -p 80:80 -v /path/to/your/content:/var/www/html/content -v `pwd`/themes:/var/www/html/themes -e THEME="simpletwo" --name pico ghcr.io/t-matsuo/docker-pico/pico
```## Environment Variables
* `SITE_TITLE` default: "Pico"
* `PICO_DEBUG` default: "false"
* set "true" to use debug mode
* `THEME` default: "default"## Directories
* /var/www/html/content
* put your contents
* /var/www/html/assets
* put your assets
* /var/www/html/themes
* put your custom themes