https://github.com/whatishedoing/docker-jekyll-node
Docker Jekyll Node.js
https://github.com/whatishedoing/docker-jekyll-node
Last synced: 5 months ago
JSON representation
Docker Jekyll Node.js
- Host: GitHub
- URL: https://github.com/whatishedoing/docker-jekyll-node
- Owner: WhatIsHeDoing
- License: unlicense
- Created: 2020-02-25T23:23:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T23:25:00.000Z (over 6 years ago)
- Last Synced: 2025-06-22T18:52:49.631Z (12 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Jekyll Node.js
[][site]
[][site]
## 👋 Introduction
Designed to be used as a base image for [Jekyll] builds, with [Node.js] augmentation. [Yarn] is also available.
## 🏃 Usage
Try using it as as part of your [CI/CD] pipeline:
```dockerfile
# Specify this image.
FROM whatishedoing/jekyll-node
WORKDIR /home
# Copy all files that are not in .dockerignore.
COPY . .
# Install modules and run the build.
RUN yarn install --frozen-lockfile && \
yarn build
# Let the consumer know that Jekyll will serve from port 4000 on docker run.
EXPOSE 4000
# Run Jekyll serve to test!
CMD [ "jekyll", "serve", "--host", "0.0.0.0" ]
```
[hub]: https://hub.docker.com/u/whatishedoing
[Jekyll]: https://jekyllrb.com/
[Node.js]: https://nodejs.org/
[site]: https://hub.docker.com/r/whatishedoing/jekyll-node
[Yarn]: https://yarnpkg.com/