An open API service indexing awesome lists of open source software.

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

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