moved from debian to alpine
This commit is contained in:
parent
774912f7aa
commit
d11a2a1666
12
Dockerfile
12
Dockerfile
@ -6,19 +6,17 @@ ARG HUGO_ARCH=amd64
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk -U add lastversion && \
|
apk -U add lastversion && \
|
||||||
wget $(lastversion --filter "hugo_extended_.*\-${HUGO_ARCH}\.deb$" --pre gohugoio/hugo --format assets ) -O /tmp/hugo.deb
|
wget $(lastversion --filter "hugo_extended_.*\-${HUGO_ARCH}\.tar\.gz$" --pre gohugoio/hugo --format assets ) -O - | tar xzv -C /tmp
|
||||||
|
|
||||||
|
|
||||||
##### final image
|
##### final image
|
||||||
|
|
||||||
FROM debian:12-slim
|
FROM alpine:latest
|
||||||
|
|
||||||
COPY --from=prep /tmp/hugo.deb /tmp/hugo.deb
|
COPY --from=prep /tmp/hugo /usr/local/bin/hugo
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt update && \
|
apk --no-cache upgrade && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt -y upgrade && \
|
apk --no-cache add gcompat
|
||||||
apt install -y /tmp/hugo.deb && \
|
|
||||||
rm -rf /var/lib/apt/lists/ /tmp/hugo.deb
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/hugo" ]
|
ENTRYPOINT [ "/usr/local/bin/hugo" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user