This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
jekyll-docker-builder/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19 lines (14 sloc)
533 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
# the user is supposed to mount the Jekyll static site at /src in this container | |
VOLUME ["/src"] | |
RUN \ | |
apt-get update && \ | |
apt-get install -y make nodejs ruby1.9.3 && \ | |
gem install --no-ri --no-rdoc jekyll jekyll-tagging && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ | |
mkdir /build | |
# having apt-get clean and rm -rf ... saves about 21 MB | |
# WTF: ubuntu image has locale set to "POSIX" (whatever that is) | |
ENV LC_ALL C.UTF-8 | |
CMD jekyll build --source /src/ --destination /build/ |