Sign inSign up

businesstools/grav

By businesstools

•Updated almost 8 years ago

Baseimage for Grav CMS

Image
1

2.4K

businesstools/grav repository overview

⁠Baseimage for Grav CMS

https://getgrav.org⁠

This image contains node and yarn as well, so things like node-sass might be easily added and integrated through a single package.json.

⁠Usage

Copy user folder to /var/www/html/user and populate as described in the Grav documentation⁠.

Here's an minimal example Dockerfile:

FROM businesstools/grav:latest
COPY user/ /var/www/html/user

and docker-compose.yml for development, meant to be used with nginx-proxy⁠ and a local dnsmasq⁠:

version: '2'
services:
  web:
    build: .
    volumes:
      - ./user:/var/www/html/user
    environment:
      VIRTUAL_HOST: my-site.dkr
    network_mode: "bridge"

The container can be started by issuing docker-compose up, then accessed at http://my-site.dkr/⁠.

Once the container is running, CLI utilities can be called like:

docker-compose exec web grav …
docker-compose exec web gpm …
docker-compose exec web plugin …

Tag summary

Content type

Image

Digest

Size

226.9 MB

Last updated

almost 8 years ago

docker pull businesstools/grav