docker-hugo
docker-hugo copied to clipboard
docker-hugo-extended -> works with debian
Hi, I had the issue that some features (like SCSS) were not working with your approach.
I noticed that an extended-version of Hugo is required for that. I tried to get it run with alpine-linux but failed. However, I managed to combine your Dockerfile with a debian version I found:
FROM debian:9-slim
ENV HUGO_VERSION='0.49'
ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit"
ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.deb"
ENV BUILD_DEPS="wget"
RUN apt-get update \
&& apt-get install -y git "${BUILD_DEPS}" \
&& wget "${HUGO_URL}" \
&& apt-get install "./${HUGO_NAME}.deb" \
&& rm -rf "./${HUGO_NAME}.deb" "${HUGO_NAME}" \
&& apt-get remove -y "${BUILD_DEPS}" \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& groupadd -g 1000 hugo \
&& useradd -g hugo -u 1000 -m -d /src hugo
WORKDIR /src
EXPOSE 1313
I love your approach and like to share my workaround for a hugo-extended. Maybe you are able to get it running with alpine-linux.
thx & cheers