Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions apps/hugo_extended/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ COPY --from=builder hugo /usr/local/bin/hugo
ENV GLIBC_VERSION 2.35-r1

RUN set -x && \
apk add --update wget ca-certificates libstdc++

RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
&& wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-$GLIBC_VERSION.apk" \
&& apk --no-cache add "glibc-$GLIBC_VERSION.apk" \
&& rm "glibc-$GLIBC_VERSION.apk" \
&& wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-bin-$GLIBC_VERSION.apk" \
&& apk --no-cache add "glibc-bin-$GLIBC_VERSION.apk" \
&& rm "glibc-bin-$GLIBC_VERSION.apk" \
&& wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-i18n-$GLIBC_VERSION.apk" \
&& apk --no-cache add "glibc-i18n-$GLIBC_VERSION.apk" \
&& rm "glibc-i18n-$GLIBC_VERSION.apk"
apk add --update wget ca-certificates libstdc++ gcompat

# RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
# && wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-$GLIBC_VERSION.apk" \
# && apk --no-cache add "glibc-$GLIBC_VERSION.apk" \
# && rm "glibc-$GLIBC_VERSION.apk" \
# && wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-bin-$GLIBC_VERSION.apk" \
# && apk --no-cache add "glibc-bin-$GLIBC_VERSION.apk" \
# && rm "glibc-bin-$GLIBC_VERSION.apk" \
# && wget "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC_VERSION/glibc-i18n-$GLIBC_VERSION.apk" \
# && apk --no-cache add "glibc-i18n-$GLIBC_VERSION.apk" \
# && rm "glibc-i18n-$GLIBC_VERSION.apk"

# RUN apk --no-cache add gcompat

USER 10001
18 changes: 18 additions & 0 deletions apps/hugo_extended/Dockerfile.latest
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM alpine AS builder

RUN apk add --no-cache \
curl

ARG HUGO_VERSION=0.144.2
ENV HUGO_VERSION=${HUGO_VERSION}
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | tar xvz

# the GLIBC installation below only works up to alpine:3.18
FROM alpine:3.18

COPY --from=builder hugo /usr/local/bin/hugo

RUN set -x && \
apk add --update wget ca-certificates libstdc++ gcompat

USER 10001