I feel a little bitter 😱 to install
Jekyll again after a long period. Indeed, I don’t remember either steps or dependencies for different environments. My memory leads me to dockerize because I use daily
Docker, anyway 🤔.
Let me share mime.
- Firstly, build images
docker build -t jekyll .and name it
- Run container
docker run -d -p 4000:4000 -v [path/to/blog]:/src:rw --name blog jekyll
docker run -d -p 4000:4000 -v /Users/quy/dongchirua:/src:rw --name blog jekyll
After running container, Jekyll won’t bother me anymore 😋. Besides, every change will be synced automatically to the container, just refresh my browser at http://localhost:4000 (I use docker for Mac). Unfortunately, there is a drawback which costs 879 MB on disk 🤓.
Updated on 20th June 2019: upgrade Dockerfile