Closed Himura2la closed 4 years ago
Thanks for PR! I have some problems:
0.0.0.0
not working on Windows.jekyll serve --watch
and jekyll build
?Proof that it works on Windows
I don't think docker configuration should be changed, you can add something like ARG or ENV?
I don't think it's required to overcomplicate the Dockerfile with ARGs.
Anyone who needs to do something custom, can do
docker-compose run web bash
, get right into the Debian shell and be absolutely free to do anything.
Instead of 'bash' can be any command with jekyll
Note that changing files inside the container is not easy, so '--watch' is useless. I already thought that 'jekyll build' in Dockerfile and some kind of 'jekyll run' in CMD will be more natural, but I was too lazy to learn what's jekyll and how to use it)) Also, 'jekyll serve' in CMD has an advantage: the errors in code won't break the image, which builds really long and does not cache the RUN layer... So hotfixing the app will be more easy
I needed to run this app locally to use it, and was upset when realized that I need ruby with global packages on my host pc. Docker image covers this scenario