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
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARG PAGEFIND_VERSION=1.5.2
# base defines the generic base stage
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base
RUN apk add --no-cache \
bash \
git \
nodejs \
npm \
Expand Down Expand Up @@ -41,6 +42,9 @@ WORKDIR /project
COPY --from=hugo /out/hugo /bin/hugo
COPY --from=npm /out/node_modules node_modules
COPY . .
RUN --mount=type=cache,target=/root/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
./hack/api-docs/run.sh test && ./hack/api-docs/run.sh generate

# build creates production builds with Hugo
FROM build-base AS build
Expand All @@ -58,7 +62,9 @@ RUN --mount=type=cache,target=/tmp/hugo_cache \
--printUnusedTemplates \
-b $DOCS_URL \
-e $HUGO_ENV
RUN ./hack/flatten-and-resolve.js public
RUN node --test hack/test/flatten-and-resolve.mjs
RUN node hack/flatten-and-resolve.js public
RUN node hack/api-docs/verify-output.mjs public

# lint lints markdown files
FROM ghcr.io/rvben/rumdl:0.2.49-alpine AS lint
Expand Down
1 change: 1 addition & 0 deletions _vale/config/vocabularies/Docker/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,4 @@ superset
tokenization
WebGL
Xubuntu
Netlify
Loading