docs/Containerfile

25 lines
524 B
Plaintext
Raw Normal View History

2024-08-09 01:19:20 +00:00
# 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"]