Files
athens/docs/Dockerfile
Jerry Ng 8e1581e10b docs: update hugo-theme-learn version to latest master (#1871)
* docs: reclone hugo theme learn repo

* docs: move athens custom html to hugo custom layout dir

* docs: update HUGO_VERSION to 0.72.0
2023-05-10 08:05:58 +08:00

22 lines
536 B
Docker

FROM alpine:3.8 as builder
ARG HUGO_VERSION=0.72.0
ENV HUGO_BINARY=hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp
RUN tar -xf /tmp/${HUGO_BINARY} -C /tmp
FROM alpine:3.8
COPY --from=builder /tmp/hugo /usr/local/bin/hugo
RUN apk upgrade --update \
&& apk add --no-cache git asciidoctor libc6-compat libstdc++ ca-certificates
WORKDIR /src
CMD ["hugo", "server", "-s", "/src", "-b", "http://localhost:1313", "--bind", "0.0.0.0"]
EXPOSE 1313