From e1e99fe9b81efc9efefcd9b3063a32e0be184e8a Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 8 Aug 2022 16:53:53 -0500 Subject: [PATCH] simplify Dockerfile.site, eliminate copy commands --- Dockerfile.site | 6 +----- site/{ => docs}/favicon.svg | 0 site/{ => docs}/logo.png | Bin site/{styles.css => docs/stylesheets/extra.css} | 0 4 files changed, 1 insertion(+), 5 deletions(-) rename site/{ => docs}/favicon.svg (100%) rename site/{ => docs}/logo.png (100%) rename site/{styles.css => docs/stylesheets/extra.css} (100%) diff --git a/Dockerfile.site b/Dockerfile.site index c45b9fd..4d9f311 100644 --- a/Dockerfile.site +++ b/Dockerfile.site @@ -1,16 +1,12 @@ FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build WORKDIR /build -COPY README.md /build/docs/index.md -COPY site/styles.css /build/docs/stylesheets/extra.css COPY site/ /build/ +COPY README.md /build/docs/index.md RUN sed -i 's|^.*/workflows/ci.yml.*$||' /build/docs/index.md RUN mkdocs build -COPY site/favicon.svg /build/site/ -COPY site/logo.png /build/site/ - FROM ghcr.io/umputun/reproxy COPY --from=build /build/site /srv/site diff --git a/site/favicon.svg b/site/docs/favicon.svg similarity index 100% rename from site/favicon.svg rename to site/docs/favicon.svg diff --git a/site/logo.png b/site/docs/logo.png similarity index 100% rename from site/logo.png rename to site/docs/logo.png diff --git a/site/styles.css b/site/docs/stylesheets/extra.css similarity index 100% rename from site/styles.css rename to site/docs/stylesheets/extra.css