slate-v3-1770514618/docs/Dockerfile
jordan c65d01ffe7
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline was successful
Initialize project from skeleton template
2026-02-08 01:36:59 +00:00

28 lines
599 B
Docker

# Slate documentation builder
# Used by CI to generate static HTML from OpenAPI specs
FROM ruby:3.2-slim
# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
nodejs \
npm \
git \
&& rm -rf /var/lib/apt/lists/*
# Install widdershins globally for OpenAPI to Slate markdown conversion
RUN npm install -g widdershins
WORKDIR /docs
# Copy Gemfile first for layer caching
COPY Gemfile Gemfile.lock* ./
RUN bundle install
# Copy the rest of the docs source
COPY . .
# Build static site
CMD ["bundle", "exec", "middleman", "build", "--clean"]