jojomi/docker-hugo

keep ca-certificates

ssugiyama opened this issue · 6 comments

Hi,
https connection is often needed in hugo build process. for example, when using shortcodes. so please don't delete ca-certificates in your Dockerfile.

Thank you for your input!

Can you name an example shortcode depending on having the certificates available at build time? I am willing to change the Dockerfile if it makes sense ;-).

Among built-in shortcodes (https://gohugo.io/extras/shortcodes/), twitter, youtube, vimeo, and gist are the cases. That is, any shortcodes that fetch data from other sites via https need ca-certificates. (And nowadays most sites support https only).

Hi jojomi,
I would use it if I could use twitter shortcode...

You just have to install ca-certificates, see this blog post

Since we by now use ADD to put the tar.gz archive to the container, I added a new line in the Dockerfile installing the ca-certificates package. Can one of you verify that this fixes your itch?

Only the latest tag is already rebuild. Subsequent tagged images will continue this code as well: https://hub.docker.com/r/jojomi/hugo/builds/

It's working for me thanks. 👍

Thank you for the quick feedback @jbleuzen