migrate to debian slim
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing

This commit is contained in:
Paolo Asperti 2023-02-14 01:37:57 +01:00
parent 66f3383cc5
commit 30b85c9950
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -1,9 +1,10 @@
FROM alpine:edge
FROM debian:11-slim
ARG HUGO_VERSION=0.110.0
RUN \
apk -U add wget libgcc libstdc++ && \
wget -O - "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" | tar xvzf - -C /usr/bin
ADD "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb" /tmp/hugo.deb
ENTRYPOINT [ "/usr/bin/hugo" ]
RUN \
apt install -y /tmp/hugo.deb && rm /tmp/hugo.deb
ENTRYPOINT [ "/usr/local/bin/hugo" ]