25 lines
524 B
Docker
25 lines
524 B
Docker
# build various sites using mdbook
|
|
|
|
FROM scratch AS base
|
|
|
|
COPY quorum-key-management /quorum-key-management
|
|
|
|
FROM base AS build
|
|
COPY --from=stagex/mdbook . /
|
|
|
|
WORKDIR /quorum-key-management
|
|
RUN ["/usr/bin/mdbook", "build"]
|
|
|
|
FROM stagex/filesystem AS install
|
|
|
|
COPY --from=stagex/python . /
|
|
COPY --from=stagex/musl . /
|
|
COPY --from=stagex/zlib . /
|
|
|
|
ADD index.html /var/www/html/
|
|
COPY --from=build /quorum-key-management/book /var/www/html/qkm
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
ENTRYPOINT ["/usr/bin/python", "-m", "http.server", "8080"]
|