2021-08-16 21:34:57 -04:00
|
|
|
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
|
2021-08-16 21:55:09 -04:00
|
|
|
WORKDIR /usr/bin/cre/
|
2021-08-16 21:34:57 -04:00
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
2021-08-16 21:55:09 -04:00
|
|
|
COPY --from=build /usr/src/site/ docs
|
2021-08-16 21:34:57 -04:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|