Official Docker Image for Grav
Go to file
Rotzbua d94c4836e7 optimize apt-get step (#18)
source: https://www.fromlatest.io/#/

Line 8: Consider `--no-install-recommends` (Optimization)
Consider using a --no-install-recommends when apt-get installing packages. This will result in a smaller image size.

Line 8: apt-get update with matching cache rm (Optimization)
Use of apt-get update should be paired with rm -rf /var/lib/apt/lists/* in the same layer.
2020-01-22 12:32:19 -07:00
Dockerfile optimize apt-get step (#18) 2020-01-22 12:32:19 -07:00
README.md Update to version 1.6.16 and make production use ready (#17) 2020-01-22 12:31:37 -07:00

README.md

Official Docker Image for Grav

This currently is pretty minimal and uses:

  • apache-2.4.38
  • GD library
  • Unzip library
  • php7.3
  • php7.3-opcache
  • php7.3-acpu
  • php7.3-yaml
  • cron
  • vim editor

Building the image from Dockerfile

docker build -t grav:latest .

Running Grav Image with Latest Grav + Admin:

docker run -p 8000:80 grav:latest

Point browser to http://localhost:8000 and create user account...

Running Grav Image with Latest Grav + Admin with a named volume (can be used in production)

docker run -d -p 8000:80 --name grav --restart always -v grav_data:/var/www/html grav:1.0