hugo-git (latest)
Published 2026-04-23 20:39:17 +00:00 by jm
Installation
docker pull forgejo.jmopines.com/jm/hugo-git:latestsha256:a47b7452cbd2f1650021f41ae0828c223b588dfbdb80c52f778a8eeea4d6b87dAbout this package
The world’s fastest framework for building websites.
Image Layers
| ADD alpine-minirootfs-3.22.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
| ENV GOLANG_VERSION=1.26.2 |
| ENV GOTOOLCHAIN=local |
| ENV GOPATH=/go |
| ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| COPY /target/ / # buildkit |
| RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
| WORKDIR /go |
| COPY /usr/bin/hugo /usr/bin/hugo # buildkit |
| RUN /bin/sh -c apk add --no-cache libc6-compat git runuser nodejs npm openssh-client tar # buildkit |
| RUN /bin/sh -c mkdir -p /var/hugo/bin /cache && addgroup -Sg 1000 hugo && adduser -Sg hugo -u 1000 -h /var/hugo hugo && chown -R hugo: /var/hugo /cache && runuser -u hugo -- git config --global --add safe.directory /project && runuser -u hugo -- git config --global core.quotepath false # buildkit |
| USER hugo:hugo |
| VOLUME [/project] |
| WORKDIR /project |
| ENV HUGO_CACHEDIR=/cache |
| ENV PATH=/var/hugo/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| COPY scripts/docker/entrypoint.sh /entrypoint.sh # buildkit |
| COPY /out/dart-sass /var/hugo/bin/dart-sass # buildkit |
| ENV PATH=/var/hugo/bin/dart-sass:/var/hugo/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| EXPOSE [1313/tcp] |
| ENTRYPOINT ["/entrypoint.sh"] |
| CMD ["--help"] |
| USER root |
| RUN /bin/sh -c apk add --no-cache git # buildkit |
| USER hugo |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2026-04-08T14:23:54.178Z |
| org.opencontainers.image.description | The world’s fastest framework for building websites. |
| org.opencontainers.image.licenses | Apache-2.0 |
| org.opencontainers.image.revision | d6bc8165e62b29d7d70ede01ed01d0f88de327e6 |
| org.opencontainers.image.source | https://github.com/gohugoio/hugo |
| org.opencontainers.image.title | hugo |
| org.opencontainers.image.url | https://github.com/gohugoio/hugo |
| org.opencontainers.image.version | v0.160.1 |