docker-hugo/Dockerfile
paspo d11a2a1666
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
moved from debian to alpine
2024-05-02 10:21:57 +02:00

23 lines
471 B
Docker

##### this stage will download latest deb package
FROM alpine:latest as prep
ARG HUGO_ARCH=amd64
RUN \
apk -U add lastversion && \
wget $(lastversion --filter "hugo_extended_.*\-${HUGO_ARCH}\.tar\.gz$" --pre gohugoio/hugo --format assets ) -O - | tar xzv -C /tmp
##### final image
FROM alpine:latest
COPY --from=prep /tmp/hugo /usr/local/bin/hugo
RUN \
apk --no-cache upgrade && \
apk --no-cache add gcompat
ENTRYPOINT [ "/usr/local/bin/hugo" ]