Sign inSign up

ledermann/docker-jekyll

By ledermann

•Updated about 5 years ago

Building the smallest possible Docker image to deploy a static Jekyll website

Image
0

493

ledermann/docker-jekyll repository overview

⁠DockerJekyll

Building the smallest possible Docker image to deploy a static Jekyll website

⁠Getting started

docker build -t my-site .
docker run -it -p 8080:80 my-site

Open http://localhost:8080⁠ in your browser.

⁠About size

Because of multi-stage building, the resulting image contains only Nginx and the HTML code. No Ruby, no build stuff - ready to ship to your Docker host.

Look at the image size:

$ docker images | grep my-site
my-site   latest   a02c7d53f542   3 seconds ago   21.9MB

⁠Requirements

  • Docker 17.05 or later

Tag summary

Content type

Image

Digest

Size

9.4 MB

Last updated

over 5 years ago

docker pull ledermann/docker-jekyll