27 lines
404 B
Docker
27 lines
404 B
Docker
ARG ALPINE_VERSION=3.14
|
|
|
|
FROM alpine:$ALPINE_VERSION AS build
|
|
WORKDIR /usr/src
|
|
|
|
ARG ALPINE_VERSION
|
|
|
|
RUN apk update
|
|
RUN apk add --no-cache py-pip
|
|
RUN pip install mkdocs mkdocs-material
|
|
|
|
COPY mkdocs.yml .
|
|
COPY docs docs
|
|
|
|
RUN mkdocs build
|
|
|
|
|
|
FROM nginx:mainline-alpine
|
|
WORKDIR /usr/bin/
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /usr/src/site/ .
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|