Skip to content

Commit

Permalink
Added official Docker image docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-leonrangel-kiwibank committed Oct 10, 2022
1 parent 90fa4ea commit 638aa50
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ Docker makes it easy for you to test Jekyll Pages

## Build Jekyll Page

build locally
set the version before running the build locally

there is this official [builder image](https://github.com/envygeeks/jekyll-docker#readme)

```bash
VERSION="3.8.6"
```

- Install Docker. [Docker installation instructions](https://docs.docker.com/get-docker/)
- Go to the directory where you have the source code of the site
Expand All @@ -97,10 +103,18 @@ build locally
docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" \
--env VERBOSE=true \
--env JEKYLL_ENV=production \
jekyll/jekyll:3.8 jekyll build
jekyll/jekyll:$VERSION jekyll build
```

### Bundler

```bash
docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" \
--env JEKYLL_ENV=production \
jekyll/jekyll:$VERSION jekyll bundle install
```

## Serve Page
## Serve Page

locally :-)

Expand Down

0 comments on commit 638aa50

Please sign in to comment.