14 lines
414 B
Docker
14 lines
414 B
Docker
|
FROM alpine:latest AS builder
|
||
|
WORKDIR /src
|
||
|
ARG GOHUGO_LINK=https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
|
||
|
RUN apk update && apk add curl tar
|
||
|
RUN curl -LJO ${GOHUGO_LINK} && tar -xf hugo_0.110.0_linux-amd64.tar.gz
|
||
|
RUN chmod +x /src/hugo
|
||
|
|
||
|
FROM alpine:latest
|
||
|
WORKDIR /src
|
||
|
COPY --from=builder /src/hugo /usr/bin/hugo
|
||
|
COPY . /src
|
||
|
ENTRYPOINT ["/usr/bin/hugo"]
|
||
|
CMD ["--help"]
|