27 lines
411 B
Docker
27 lines
411 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/cre/
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /usr/src/site/ docs
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|