hugo/Dockerfile

34 lines
1.4 KiB
Docker
Raw Normal View History

FROM thegeeklab/alpine:latest@sha256:3de659c1a479d9d80e9c3924227981450af3a068087545a47360cfc2e70a91cc
2021-05-06 20:31:39 +00:00
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="Hugo static site generator"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/hugo"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/hugo"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/hugo"
ARG BUILD_VERSION
# renovate: datasource=github-releases depName=gohugoio/hugo
chore(deps): update dependency gohugoio/hugo to v0.84.1 (#6) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [gohugoio/hugo](https://github.com/gohugoio/hugo) | patch | `v0.84.0` -> `v0.84.1` | --- ### Release Notes <details> <summary>gohugoio/hugo</summary> ### [`v0.84.1`](https://github.com/gohugoio/hugo/releases/v0.84.1) [Compare Source](https://github.com/gohugoio/hugo/compare/v0.84.0...v0.84.1) This is a bug-fix release with a couple of important fixes. - Fix language menu config regression [093dacab](https://github.com/gohugoio/hugo/commit/093dacab29a3c6fc363408453d0bc3b1fc159ad5) [@&#8203;bep](https://github.com/bep) [#&#8203;8672](https://github.com/gohugoio/hugo/issues/8672) - config: Fix merge of config with map\[string]string values. [4a9d408f](https://github.com/gohugoio/hugo/commit/4a9d408fe0bbf4c563546e35d2be7ade4e920c4c) [@&#8203;bep](https://github.com/bep) [#&#8203;8679](https://github.com/gohugoio/hugo/issues/8679) - markup: Rename Header(s) to Heading(s) in ToC struct [a7e3da24](https://github.com/gohugoio/hugo/commit/a7e3da242f98d4799dad013d7ba2f285717640d6) [@&#8203;bep](https://github.com/bep) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://gitea.rknet.org/docker/hugo/pulls/6 Co-authored-by: Renovator Bot <renovator@rknet.org> Co-committed-by: Renovator Bot <renovator@rknet.org>
2021-06-26 19:49:42 +00:00
ENV HUGO_VERSION="${BUILD_VERSION:-v0.84.1}"
2021-05-06 20:31:39 +00:00
2021-05-06 20:40:23 +00:00
ENV HUGO_ENV=production
2021-05-06 20:31:39 +00:00
COPY overlay/ /
RUN apk add --update --no-cache --virtual .build-deps tar curl && \
apk add --update --no-cache libc6-compat libstdc++ busybox-suid bash bash-completion git tzdata make && \
echo "Installing hugo version '${HUGO_VERSION##v}' ..." && \
curl -SsL "https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION##v}_Linux-64bit.tar.gz" | \
tar xz -C /usr/local/bin hugo && \
chmod 755 /usr/local/bin/hugo && \
ln -s /usr/local/bin/hugo /usr/local/bin/hugo-official && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
rm -rf /root/.cache/
USER root
CMD ["help"]
ENTRYPOINT ["/usr/local/bin/hugo"]