2024-08-09 01:19:20 +00:00
|
|
|
# build various sites using mdbook
|
|
|
|
|
|
|
|
FROM scratch AS base
|
|
|
|
|
2025-01-28 15:16:53 +00:00
|
|
|
COPY quorum-vault-system /quorum-vault-system
|
2024-08-09 01:19:20 +00:00
|
|
|
|
|
|
|
FROM base AS build
|
|
|
|
COPY --from=stagex/mdbook . /
|
|
|
|
|
2025-01-28 15:16:53 +00:00
|
|
|
WORKDIR /quorum-vault-system
|
2024-08-09 01:19:20 +00:00
|
|
|
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/
|
2025-01-28 15:16:53 +00:00
|
|
|
COPY --from=build /quorum-vault-system/book /var/www/html
|
2024-08-09 01:19:20 +00:00
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/python", "-m", "http.server", "8080"]
|