Documentation/Dockerfile

27 lines
404 B
Docker
Raw Normal View History

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
WORKDIR /usr/bin/
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/site/ .
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]