2023-11-17 18:50:59 +03:00
|
|
|
FROM alpine:latest AS builder
|
2023-11-15 01:37:39 +03:00
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
ca-certificates \
|
|
|
|
mailcap \
|
|
|
|
git \
|
|
|
|
wget \
|
|
|
|
libc6-compat \
|
|
|
|
libstdc++
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
ARG HUGO_VERSION="0.89.3"
|
|
|
|
ARG HUGO_ARCH="64bit"
|
|
|
|
|
|
|
|
ARG HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz"
|
|
|
|
|
|
|
|
RUN wget -q -O- ${HUGO_URL} | tar xz -C /usr/local/bin
|
|
|
|
|
2023-11-17 18:50:59 +03:00
|
|
|
RUN hugo -v
|