mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
* try: build docs * try: build docs * try: publish * try: verify publishing works on fork * try: verify publishing works on fork * try: publish pages using actions/deploy-pages * try: publish pages using actions/deploy-pages * try: publish pages using actions/deploy-pages * try: publish pages using actions/deploy-pages * feat: build docs and deploy to GitHub pages * fix: run on PRs for main * try: baseURL with custom domain * try: baseURL with custom domain * fix: revert baseURL with custom domain, it works.
22 lines
537 B
Docker
22 lines
537 B
Docker
FROM alpine:3.8 AS builder
|
|
|
|
ARG HUGO_VERSION=0.125.1
|
|
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
|